<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Priithon.plt.plot_utility</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Priithon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/priithon">Priithon</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Priithon-module.html">Package&nbsp;Priithon</a> ::
        <a href="Priithon.plt-module.html">Package&nbsp;plt</a> ::
        Module&nbsp;plot_utility
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Priithon.plt.plot_utility-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="Priithon.plt.plot_utility-module.html">Module Priithon.plt.plot_utility</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-docstring">""" General purpose classes for plotting utility.</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-docstring">    Many of these classes and function are helpful for laying out the </tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-docstring">    location of element of a graph (titles, tick labels, ticks, etc).</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-docstring">    A simple class for handling properties of graph elements is also</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-docstring">    included.  Everything here is independent of any specific GUI or</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-docstring">    drawing platform</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-docstring">    .</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-docstring">    The classes and functions break out into 3 main sections:</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-docstring">    General layout:</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-docstring">        class box_object   -- Helps align rectangular graph elements </tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-docstring">                              relative to one another.  Currently only</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-docstring">                              Int values are allowed for box dimensions.</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-docstring">        class point_object -- Alignment of points with one-another or </tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-docstring">                              box_objects.  </tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">    Property Management:                          </tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-docstring">        class poperty_object -- base class for any graph object that </tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-docstring">                                manages a set of properties.  Pretty</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-docstring">                                low-tech compared to graphite and Zope.</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-docstring">                                It could use additions for error checking.</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-docstring">                                </tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-docstring">    Axis layout functions:</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt class="py-docstring">        auto_ticks          -- find set of tick locations for an axis.</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt class="py-docstring">        format_tick_labels  -- convert the numerical tick values to strings</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-docstring">                               for labels</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt class="py-docstring">        auto_interval       -- determine an appropriate tick interval for axis</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"><tt class="py-docstring">        auto_bounds         -- determine appropriate end points for axis </tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt class="py-docstring">        and a few others...</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"><tt class="py-comment">#----------------------------------------------------------</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#               General layout classes</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#----------------------------------------------------------</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">from</tt> <tt class="py-name">numpy</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module Priithon.plt.seb=Priithon.plt.seb-module.html"><a title="Priithon.plt.seb" class="py-name" href="#" onclick="return doclink('link-0', 'seb', 'link-0');">seb</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Class Priithon.plt.seb.limits=Priithon.plt.seb.limits-class.html"><a title="Priithon.plt.seb.limits" class="py-name" href="#" onclick="return doclink('link-1', 'limits', 'link-1');">limits</a></tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line"> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line"><tt id="link-2" class="py-name" targets="Variable Priithon.plt.LEFT=Priithon.plt-module.html#LEFT,Variable Priithon.plt.plot_objects.LEFT=Priithon.plt.plot_objects-module.html#LEFT,Variable Priithon.plt.plot_utility.LEFT=Priithon.plt.plot_utility-module.html#LEFT,Variable Priithon.plt.wxplt.LEFT=Priithon.plt.wxplt-module.html#LEFT"><a title="Priithon.plt.LEFT
Priithon.plt.plot_objects.LEFT
Priithon.plt.plot_utility.LEFT
Priithon.plt.wxplt.LEFT" class="py-name" href="#" onclick="return doclink('link-2', 'LEFT', 'link-2');">LEFT</a></tt><tt class="py-op">,</tt><tt id="link-3" class="py-name" targets="Variable Priithon.plt.RIGHT=Priithon.plt-module.html#RIGHT,Variable Priithon.plt.plot_objects.RIGHT=Priithon.plt.plot_objects-module.html#RIGHT,Variable Priithon.plt.plot_utility.RIGHT=Priithon.plt.plot_utility-module.html#RIGHT,Variable Priithon.plt.wxplt.RIGHT=Priithon.plt.wxplt-module.html#RIGHT"><a title="Priithon.plt.RIGHT
Priithon.plt.plot_objects.RIGHT
Priithon.plt.plot_utility.RIGHT
Priithon.plt.wxplt.RIGHT" class="py-name" href="#" onclick="return doclink('link-3', 'RIGHT', 'link-3');">RIGHT</a></tt><tt class="py-op">,</tt><tt id="link-4" class="py-name" targets="Variable Priithon.plt.TOP=Priithon.plt-module.html#TOP,Variable Priithon.plt.plot_objects.TOP=Priithon.plt.plot_objects-module.html#TOP,Variable Priithon.plt.plot_utility.TOP=Priithon.plt.plot_utility-module.html#TOP,Variable Priithon.plt.wxplt.TOP=Priithon.plt.wxplt-module.html#TOP"><a title="Priithon.plt.TOP
Priithon.plt.plot_objects.TOP
Priithon.plt.plot_utility.TOP
Priithon.plt.wxplt.TOP" class="py-name" href="#" onclick="return doclink('link-4', 'TOP', 'link-4');">TOP</a></tt><tt class="py-op">,</tt><tt id="link-5" class="py-name" targets="Variable Priithon.plt.BOTTOM=Priithon.plt-module.html#BOTTOM,Variable Priithon.plt.plot_objects.BOTTOM=Priithon.plt.plot_objects-module.html#BOTTOM,Variable Priithon.plt.plot_utility.BOTTOM=Priithon.plt.plot_utility-module.html#BOTTOM,Variable Priithon.plt.wxplt.BOTTOM=Priithon.plt.wxplt-module.html#BOTTOM"><a title="Priithon.plt.BOTTOM
Priithon.plt.plot_objects.BOTTOM
Priithon.plt.plot_utility.BOTTOM
Priithon.plt.wxplt.BOTTOM" class="py-name" href="#" onclick="return doclink('link-5', 'BOTTOM', 'link-5');">BOTTOM</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">3</tt> <tt class="py-comment"># used by same_as() method</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line"> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line"><tt class="py-comment">#20060726 TYPE = int32 # all values in a box_object are forced to be integers</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#20060726              # might change this later when we've looked at round off</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#20060726              # issues more thoroughly.</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-name">TYPE</tt><tt class="py-op">=</tt><tt class="py-name">int0</tt> <tt class="py-comment"># '&lt;i8' on 64 bit PC</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line"> </tt>
<a name="box_object"></a><div id="box_object-def"><a name="L46"></a><tt class="py-lineno"> 46</tt> <a class="py-toggle" href="#" id="box_object-toggle" onclick="return toggle('box_object');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html">box_object</a><tt class="py-op">:</tt> </tt>
</div><div id="box_object-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="box_object-expanded"><a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">    <tt class="py-docstring">""" Helpful for laying out rectangles.</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line"><tt class="py-docstring">        This class has three general areas of functionality:</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line"><tt class="py-docstring">            1. Retreive information about a box such as it's size, </tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line"><tt class="py-docstring">               the x-coordinate of its left side, and others.</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line"><tt class="py-docstring">            2. Specify the location of one box (rectangle) in relation to </tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line"><tt class="py-docstring">               another using methods such as left_of(), above(), </tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line"><tt class="py-docstring">               or center_on().</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line"><tt class="py-docstring">            3. Change the size (and location) of a box by either choping off</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line"><tt class="py-docstring">               a portion of the box using trim_right(), trim_left(), and </tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line"><tt class="py-docstring">               others or inflating the box by a percentage.               </tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="box_object.__init__"></a><div id="box_object.__init__-def"><a name="L59"></a><tt class="py-lineno"> 59</tt> <a class="py-toggle" href="#" id="box_object.__init__-toggle" onclick="return toggle('box_object.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">topleft</tt><tt class="py-op">,</tt><tt class="py-param">size</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.__init__-expanded"><a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt> <tt class="py-op">=</tt> <tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt class="py-name">topleft</tt><tt class="py-op">,</tt><tt class="py-name">TYPE</tt><tt class="py-op">)</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_size</tt> <tt class="py-op">=</tt> <tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt id="link-6" class="py-name" targets="Method Priithon.plt.plot_objects.text_object.size()=Priithon.plt.plot_objects.text_object-class.html#size,Method Priithon.plt.plot_utility.box_object.size()=Priithon.plt.plot_utility.box_object-class.html#size,Variable Priithon.viewerRubberbandMode.viewerRubberbandMode.size=Priithon.viewerRubberbandMode.viewerRubberbandMode-class.html#size"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-6', 'size', 'link-6');">size</a></tt><tt class="py-op">,</tt><tt class="py-name">TYPE</tt><tt class="py-op">)</tt> </tt>
</div><a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line"> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">    <tt class="py-comment">#--------------- interrogation functions --------------------#</tt> </tt>
<a name="box_object.left"></a><div id="box_object.left-def"><a name="L64"></a><tt class="py-lineno"> 64</tt> <a class="py-toggle" href="#" id="box_object.left-toggle" onclick="return toggle('box_object.left');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#left">left</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">        <tt class="py-docstring">"Return the x-coordinate of the left edge."</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
</div><a name="box_object.right"></a><div id="box_object.right-def"><a name="L67"></a><tt class="py-lineno"> 67</tt> <a class="py-toggle" href="#" id="box_object.right-toggle" onclick="return toggle('box_object.right');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#right">right</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">        <tt class="py-docstring">"Return the x-coordinate of the right edge."</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.width()=Priithon.plt.plot_utility.box_object-class.html#width"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-7', 'width', 'link-7');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.top"></a><div id="box_object.top-def"><a name="L70"></a><tt class="py-lineno"> 70</tt> <a class="py-toggle" href="#" id="box_object.top-toggle" onclick="return toggle('box_object.top');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#top">top</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">        <tt class="py-docstring">"Return the y-coordinate of the top edge."</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
</div><a name="box_object.bottom"></a><div id="box_object.bottom-def"><a name="L73"></a><tt class="py-lineno"> 73</tt> <a class="py-toggle" href="#" id="box_object.bottom-toggle" onclick="return toggle('box_object.bottom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#bottom">bottom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.bottom-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.bottom-expanded"><a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">        <tt class="py-docstring">"Return the y-coordinate of the bottom edge."</tt>  </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.height()=Priithon.plt.plot_utility.box_object-class.html#height"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-8', 'height', 'link-8');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.center_x"></a><div id="box_object.center_x-def"><a name="L76"></a><tt class="py-lineno"> 76</tt> <a class="py-toggle" href="#" id="box_object.center_x-toggle" onclick="return toggle('box_object.center_x');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#center_x">center_x</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">        <tt class="py-docstring">"Return the x-coordinate of the boxes center."</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">+</tt> <tt class="py-number">.5</tt> <tt class="py-op">*</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-9', 'width', 'link-7');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.center_y"></a><div id="box_object.center_y-def"><a name="L79"></a><tt class="py-lineno"> 79</tt> <a class="py-toggle" href="#" id="box_object.center_y-toggle" onclick="return toggle('box_object.center_y');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#center_y">center_y</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">        <tt class="py-docstring">"Return the y-coordinate of the left edge."</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">+</tt> <tt class="py-number">.5</tt> <tt class="py-op">*</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-10', 'height', 'link-8');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.size"></a><div id="box_object.size-def"><a name="L82"></a><tt class="py-lineno"> 82</tt> <a class="py-toggle" href="#" id="box_object.size-toggle" onclick="return toggle('box_object.size');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#size">size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.size-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.size-expanded"><a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">        <tt class="py-docstring">"Return the size of the box as array((width,height))."</tt>  </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_size</tt>              </tt>
</div><a name="box_object.width"></a><div id="box_object.width-def"><a name="L85"></a><tt class="py-lineno"> 85</tt> <a class="py-toggle" href="#" id="box_object.width-toggle" onclick="return toggle('box_object.width');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#width">width</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.width-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.width-expanded"><a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">        <tt class="py-docstring">"Return the width of the box (length along x-axis)"</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-11', 'size', 'link-6');">size</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt>     </tt>
</div><a name="box_object.height"></a><div id="box_object.height-def"><a name="L88"></a><tt class="py-lineno"> 88</tt> <a class="py-toggle" href="#" id="box_object.height-toggle" onclick="return toggle('box_object.height');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#height">height</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.height-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.height-expanded"><a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">        <tt class="py-docstring">"Return the width of the box (length along y-axis)"</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-12', 'size', 'link-6');">size</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt>     </tt>
</div><a name="box_object.center"></a><div id="box_object.center-def"><a name="L91"></a><tt class="py-lineno"> 91</tt> <a class="py-toggle" href="#" id="box_object.center-toggle" onclick="return toggle('box_object.center');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#center">center</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.center-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.center-expanded"><a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt class="py-docstring">"Return the coordinates of the boxes center as an array"</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt> <tt class="py-op">+</tt> <tt class="py-number">.5</tt> <tt class="py-op">*</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-13', 'size', 'link-6');">size</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.radial"></a><div id="box_object.radial-def"><a name="L94"></a><tt class="py-lineno"> 94</tt> <a class="py-toggle" href="#" id="box_object.radial-toggle" onclick="return toggle('box_object.radial');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#radial">radial</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">angle</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.radial-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.radial-expanded"><a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt class="py-docstring">""" Length of a ray extending from the center of the box at the</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line"><tt class="py-docstring">            specified polar angle (in radians) to the edge of the box"""</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-comment"># Could have some div_by_zero errors if h or w = 0</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#   --&gt; haven't thought about this much</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">w</tt><tt class="py-op">,</tt><tt class="py-name">h</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-14', 'size', 'link-6');">size</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt class="py-name">slope</tt> <tt class="py-op">=</tt> <tt class="py-name">abs</tt><tt class="py-op">(</tt><tt id="link-15" class="py-name" targets="Variable Priithon.mandel.tan=Priithon.mandel-module.html#tan,Variable Priithon.plt.interface.tan=Priithon.plt.interface-module.html#tan,Variable Priithon.plt.plot_objects.tan=Priithon.plt.plot_objects-module.html#tan,Variable Priithon.plt.plot_utility.tan=Priithon.plt.plot_utility-module.html#tan,Variable Priithon.plt.tan=Priithon.plt-module.html#tan,Variable Priithon.plt.wxplt.tan=Priithon.plt.wxplt-module.html#tan"><a title="Priithon.mandel.tan
Priithon.plt.interface.tan
Priithon.plt.plot_objects.tan
Priithon.plt.plot_utility.tan
Priithon.plt.tan
Priithon.plt.wxplt.tan" class="py-name" href="#" onclick="return doclink('link-15', 'tan', 'link-15');">tan</a></tt><tt class="py-op">(</tt><tt class="py-name">angle</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">slope</tt> <tt class="py-op">&gt;</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">h</tt><tt class="py-op">)</tt><tt class="py-op">/</tt><tt class="py-name">w</tt><tt class="py-op">:</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">            <tt class="py-name">s1</tt> <tt class="py-op">=</tt> <tt class="py-name">h</tt><tt class="py-op">*</tt><tt class="py-number">.5</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">            <tt class="py-name">s2</tt> <tt class="py-op">=</tt> <tt class="py-name">s1</tt><tt class="py-op">/</tt><tt class="py-name">slope</tt>            </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt>             </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">            <tt class="py-name">s1</tt> <tt class="py-op">=</tt> <tt class="py-name">w</tt><tt class="py-op">*</tt><tt class="py-number">.5</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">            <tt class="py-name">s2</tt> <tt class="py-op">=</tt> <tt class="py-name">s1</tt><tt class="py-op">*</tt><tt class="py-name">slope</tt>             </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-16" class="py-name" targets="Variable Priithon.mandel.sqrt=Priithon.mandel-module.html#sqrt,Variable Priithon.plt.interface.sqrt=Priithon.plt.interface-module.html#sqrt,Variable Priithon.plt.plot_objects.sqrt=Priithon.plt.plot_objects-module.html#sqrt,Variable Priithon.plt.plot_utility.sqrt=Priithon.plt.plot_utility-module.html#sqrt,Variable Priithon.plt.sqrt=Priithon.plt-module.html#sqrt,Variable Priithon.plt.wxplt.sqrt=Priithon.plt.wxplt-module.html#sqrt"><a title="Priithon.mandel.sqrt
Priithon.plt.interface.sqrt
Priithon.plt.plot_objects.sqrt
Priithon.plt.plot_utility.sqrt
Priithon.plt.sqrt
Priithon.plt.wxplt.sqrt" class="py-name" href="#" onclick="return doclink('link-16', 'sqrt', 'link-16');">sqrt</a></tt><tt class="py-op">(</tt><tt class="py-name">s1</tt><tt class="py-op">**</tt><tt class="py-number">2</tt><tt class="py-op">+</tt><tt class="py-name">s2</tt><tt class="py-op">**</tt><tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
</div><a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">    <tt class="py-comment">#------------- Moving and resizing methods ----------------#                </tt> </tt>
<a name="box_object.move"></a><div id="box_object.move-def"><a name="L110"></a><tt class="py-lineno">110</tt> <a class="py-toggle" href="#" id="box_object.move-toggle" onclick="return toggle('box_object.move');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#move">move</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">location</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.move-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.move-expanded"><a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">        <tt class="py-docstring">""" Move box so that its top left corner is located at</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"><tt class="py-docstring">            the specified location.  Location is an (x,y) pair."""</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt> <tt class="py-op">=</tt> <tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt class="py-name">location</tt><tt class="py-op">,</tt><tt class="py-name">TYPE</tt><tt class="py-op">)</tt>         </tt>
</div><a name="box_object.translate"></a><div id="box_object.translate-def"><a name="L114"></a><tt class="py-lineno">114</tt> <a class="py-toggle" href="#" id="box_object.translate-toggle" onclick="return toggle('box_object.translate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#translate">translate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">offset</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.translate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.translate-expanded"><a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">        <tt class="py-docstring">""" Shift the box's location by the amount specifed in</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line"><tt class="py-docstring">            offset.  Offset is an (x,y) pair."""</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt> <tt class="py-op">+</tt> <tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt class="py-name">offset</tt><tt class="py-op">,</tt><tt class="py-name">TYPE</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.set_size"></a><div id="box_object.set_size-def"><a name="L118"></a><tt class="py-lineno">118</tt> <a class="py-toggle" href="#" id="box_object.set_size-toggle" onclick="return toggle('box_object.set_size');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#set_size">set_size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">sz</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.set_size-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.set_size-expanded"><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the size of the box. sz is an (x,y) pair."""</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_size</tt> <tt class="py-op">=</tt> <tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt class="py-name">sz</tt><tt class="py-op">,</tt><tt class="py-name">TYPE</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.set_width"></a><div id="box_object.set_width-def"><a name="L121"></a><tt class="py-lineno">121</tt> <a class="py-toggle" href="#" id="box_object.set_width-toggle" onclick="return toggle('box_object.set_width');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#set_width">set_width</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">width</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.set_width-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.set_width-expanded"><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the width of the box. sz is a numeric value"""</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name" targets="Method Priithon.plt.plot_objects.text_object.set_size()=Priithon.plt.plot_objects.text_object-class.html#set_size,Method Priithon.plt.plot_utility.box_object.set_size()=Priithon.plt.plot_utility.box_object-class.html#set_size,Method Priithon.plt.plot_utility.point_object.set_size()=Priithon.plt.plot_utility.point_object-class.html#set_size"><a title="Priithon.plt.plot_objects.text_object.set_size
Priithon.plt.plot_utility.box_object.set_size
Priithon.plt.plot_utility.point_object.set_size" class="py-name" href="#" onclick="return doclink('link-17', 'set_size', 'link-17');">set_size</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt id="link-18" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-18', 'width', 'link-7');">width</a></tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-19', 'height', 'link-8');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.set_height"></a><div id="box_object.set_height-def"><a name="L124"></a><tt class="py-lineno">124</tt> <a class="py-toggle" href="#" id="box_object.set_height-toggle" onclick="return toggle('box_object.set_height');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#set_height">set_height</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">height</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.set_height-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.set_height-expanded"><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the height of the box. sz is a numeric value."""</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="Priithon.plt.plot_objects.text_object.set_size
Priithon.plt.plot_utility.box_object.set_size
Priithon.plt.plot_utility.point_object.set_size" class="py-name" href="#" onclick="return doclink('link-20', 'set_size', 'link-17');">set_size</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-21', 'width', 'link-7');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt id="link-22" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-22', 'height', 'link-8');">height</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">    <tt class="py-comment">#-------------------- Relational Positioning ----------------#        </tt> </tt>
<a name="box_object.above"></a><div id="box_object.above-def"><a name="L129"></a><tt class="py-lineno">129</tt> <a class="py-toggle" href="#" id="box_object.above-toggle" onclick="return toggle('box_object.above');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#above">above</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">other_box</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.above-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.above-expanded"><a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-docstring">"""Move box so that its bottom edge has same y-coord of the</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line"><tt class="py-docstring">           top edge of other_box.  The size does not change.  Optionally,</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"><tt class="py-docstring">           margin specifies the gap between the boxes."""</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.top()=Priithon.plt.plot_utility.box_object-class.html#top"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-23', 'top', 'link-23');">top</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-24', 'height', 'link-8');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">margin</tt> </tt>
</div><a name="box_object.below"></a><div id="box_object.below-def"><a name="L134"></a><tt class="py-lineno">134</tt> <a class="py-toggle" href="#" id="box_object.below-toggle" onclick="return toggle('box_object.below');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#below">below</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">other_box</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.below-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.below-expanded"><a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">        <tt class="py-docstring">"""Move box so that its top edge has same y-coord of the </tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line"><tt class="py-docstring">           bottom edge of other_box.  The size does not change.  Optionally,</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line"><tt class="py-docstring">           margin specifies the gap between the boxes."""</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.bottom()=Priithon.plt.plot_utility.box_object-class.html#bottom"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-25', 'bottom', 'link-25');">bottom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">margin</tt> </tt>
</div><a name="box_object.left_of"></a><div id="box_object.left_of-def"><a name="L139"></a><tt class="py-lineno">139</tt> <a class="py-toggle" href="#" id="box_object.left_of-toggle" onclick="return toggle('box_object.left_of');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#left_of">left_of</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">other_box</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.left_of-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.left_of-expanded"><a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">        <tt class="py-docstring">"""Move box so that its right edge has same x-coord of the</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line"><tt class="py-docstring">           left edge of other_box.  The size does not change.  Optionally, </tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line"><tt class="py-docstring">           margin specifies the gap between the boxes."""</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.left()=Priithon.plt.plot_utility.box_object-class.html#left"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-26', 'left', 'link-26');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-27', 'width', 'link-7');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">margin</tt> </tt>
</div><a name="box_object.right_of"></a><div id="box_object.right_of-def"><a name="L144"></a><tt class="py-lineno">144</tt> <a class="py-toggle" href="#" id="box_object.right_of-toggle" onclick="return toggle('box_object.right_of');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#right_of">right_of</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">other_box</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.right_of-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.right_of-expanded"><a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">        <tt class="py-docstring">"""Move box so that its left edge has same x-coord of the </tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line"><tt class="py-docstring">           right edge of other_box.  The size does not change.  Optionally,</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line"><tt class="py-docstring">           margin specifies the gap between the boxes."""</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-28" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.right()=Priithon.plt.plot_utility.box_object-class.html#right"><a title="Priithon.plt.plot_utility.box_object.right" class="py-name" href="#" onclick="return doclink('link-28', 'right', 'link-28');">right</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">margin</tt> </tt>
</div><a name="box_object.center_on_x_of"></a><div id="box_object.center_on_x_of-def"><a name="L149"></a><tt class="py-lineno">149</tt> <a class="py-toggle" href="#" id="box_object.center_on_x_of-toggle" onclick="return toggle('box_object.center_on_x_of');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#center_on_x_of">center_on_x_of</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">other_box</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">        <tt class="py-docstring">"""Move box so that x-coord of its center equals the x-coord of </tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line"><tt class="py-docstring">           other_box's center. The size does not change."""</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.center_x()=Priithon.plt.plot_utility.box_object-class.html#center_x"><a title="Priithon.plt.plot_utility.box_object.center_x" class="py-name" href="#" onclick="return doclink('link-29', 'center_x', 'link-29');">center_x</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-number">.5</tt> <tt class="py-op">*</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-30" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-30', 'width', 'link-7');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>             </tt>
</div><a name="box_object.center_on_y_of"></a><div id="box_object.center_on_y_of-def"><a name="L153"></a><tt class="py-lineno">153</tt> <a class="py-toggle" href="#" id="box_object.center_on_y_of-toggle" onclick="return toggle('box_object.center_on_y_of');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#center_on_y_of">center_on_y_of</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">other_box</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.center_on_y_of-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.center_on_y_of-expanded"><a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">        <tt class="py-docstring">"""Move box so that y-coord of its center equals the y-coord of </tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line"><tt class="py-docstring">           other_box's center. The size does not change."""</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.center_y()=Priithon.plt.plot_utility.box_object-class.html#center_y"><a title="Priithon.plt.plot_utility.box_object.center_y" class="py-name" href="#" onclick="return doclink('link-31', 'center_y', 'link-31');">center_y</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-number">.5</tt> <tt class="py-op">*</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-32', 'height', 'link-8');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>             </tt>
</div><a name="box_object.center_on"></a><div id="box_object.center_on-def"><a name="L157"></a><tt class="py-lineno">157</tt> <a class="py-toggle" href="#" id="box_object.center_on-toggle" onclick="return toggle('box_object.center_on');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#center_on">center_on</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">other_box</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.center_on-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.center_on-expanded"><a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">        <tt class="py-docstring">"""Move box so that its center is the same as other_box's center.</tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line"><tt class="py-docstring">           The size does not change."""</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.center_on_x_of()=Priithon.plt.plot_utility.box_object-class.html#center_on_x_of"><a title="Priithon.plt.plot_utility.box_object.center_on_x_of" class="py-name" href="#" onclick="return doclink('link-33', 'center_on_x_of', 'link-33');">center_on_x_of</a></tt><tt class="py-op">(</tt><tt class="py-name">other_box</tt><tt class="py-op">)</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.center_on_y_of()=Priithon.plt.plot_utility.box_object-class.html#center_on_y_of"><a title="Priithon.plt.plot_utility.box_object.center_on_y_of" class="py-name" href="#" onclick="return doclink('link-34', 'center_on_y_of', 'link-34');">center_on_y_of</a></tt><tt class="py-op">(</tt><tt class="py-name">other_box</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.same_as"></a><div id="box_object.same_as-def"><a name="L162"></a><tt class="py-lineno">162</tt> <a class="py-toggle" href="#" id="box_object.same_as-toggle" onclick="return toggle('box_object.same_as');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#same_as">same_as</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">other_box</tt><tt class="py-op">,</tt><tt class="py-param">edge</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.same_as-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.same_as-expanded"><a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">        <tt class="py-docstring">"""Set the specified edge of this box to be aligned with the</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line"><tt class="py-docstring">           same edge of other_box.  The size does not change.</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt>    </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">edge</tt> <tt class="py-op">==</tt> <tt id="link-35" class="py-name"><a title="Priithon.plt.LEFT
Priithon.plt.plot_objects.LEFT
Priithon.plt.plot_utility.LEFT
Priithon.plt.wxplt.LEFT" class="py-name" href="#" onclick="return doclink('link-35', 'LEFT', 'link-2');">LEFT</a></tt><tt class="py-op">:</tt>  </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-36', 'left', 'link-26');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">margin</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">edge</tt> <tt class="py-op">==</tt> <tt id="link-37" class="py-name"><a title="Priithon.plt.RIGHT
Priithon.plt.plot_objects.RIGHT
Priithon.plt.plot_utility.RIGHT
Priithon.plt.wxplt.RIGHT" class="py-name" href="#" onclick="return doclink('link-37', 'RIGHT', 'link-3');">RIGHT</a></tt><tt class="py-op">:</tt>  </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name"><a title="Priithon.plt.plot_utility.box_object.right" class="py-name" href="#" onclick="return doclink('link-38', 'right', 'link-28');">right</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">margin</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">edge</tt> <tt class="py-op">==</tt> <tt id="link-39" class="py-name"><a title="Priithon.plt.TOP
Priithon.plt.plot_objects.TOP
Priithon.plt.plot_utility.TOP
Priithon.plt.wxplt.TOP" class="py-name" href="#" onclick="return doclink('link-39', 'TOP', 'link-4');">TOP</a></tt><tt class="py-op">:</tt>  </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-40', 'top', 'link-23');">top</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">margin</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">edge</tt> <tt class="py-op">==</tt> <tt id="link-41" class="py-name"><a title="Priithon.plt.BOTTOM
Priithon.plt.plot_objects.BOTTOM
Priithon.plt.plot_utility.BOTTOM
Priithon.plt.wxplt.BOTTOM" class="py-name" href="#" onclick="return doclink('link-41', 'BOTTOM', 'link-5');">BOTTOM</a></tt><tt class="py-op">:</tt>  </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-42" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-42', 'bottom', 'link-25');">bottom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">margin</tt>                     </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">ValueError</tt><tt class="py-op">,</tt> <tt class="py-string">"edge should only be plt.xxx where xxx is"</tt> \ </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">                              <tt class="py-string">" LEFT,RIGHT,TOP, or BOTTOM"</tt>                               </tt>
</div><a name="box_object.radial_offset_from"></a><div id="box_object.radial_offset_from-def"><a name="L177"></a><tt class="py-lineno">177</tt> <a class="py-toggle" href="#" id="box_object.radial_offset_from-toggle" onclick="return toggle('box_object.radial_offset_from');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#radial_offset_from">radial_offset_from</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">other_box</tt><tt class="py-op">,</tt><tt class="py-param">angle</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.radial_offset_from-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.radial_offset_from-expanded"><a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">        <tt class="py-docstring">""" Move this box so that its center is aligned along a radial ray</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line"><tt class="py-docstring">            out of other_box's center at the specified angle (in radians),</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line"><tt class="py-docstring">            and its edge touches the appropriate edge of other_box.</tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line"><tt class="py-docstring">            Optionally, margin specifies the size of the gap (along the ray)</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line"><tt class="py-docstring">            between the two boxes.</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt>  </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">        <tt class="py-name">dist</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.radial()=Priithon.plt.plot_utility.box_object-class.html#radial,Method Priithon.plt.plot_utility.point_object.radial()=Priithon.plt.plot_utility.point_object-class.html#radial"><a title="Priithon.plt.plot_utility.box_object.radial
Priithon.plt.plot_utility.point_object.radial" class="py-name" href="#" onclick="return doclink('link-43', 'radial', 'link-43');">radial</a></tt><tt class="py-op">(</tt><tt class="py-name">angle</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">margin</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-44" class="py-name"><a title="Priithon.plt.plot_utility.box_object.radial
Priithon.plt.plot_utility.point_object.radial" class="py-name" href="#" onclick="return doclink('link-44', 'radial', 'link-43');">radial</a></tt><tt class="py-op">(</tt><tt class="py-name">angle</tt><tt class="py-op">)</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">        <tt class="py-name">new_center</tt> <tt class="py-op">=</tt> <tt class="py-name">other_box</tt><tt class="py-op">.</tt><tt id="link-45" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.center()=Priithon.plt.plot_utility.box_object-class.html#center,Method Priithon.viewerCommon.GLViewerCommon.center()=Priithon.viewerCommon.GLViewerCommon-class.html#center"><a title="Priithon.plt.plot_utility.box_object.center
Priithon.viewerCommon.GLViewerCommon.center" class="py-name" href="#" onclick="return doclink('link-45', 'center', 'link-45');">center</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt id="link-46" class="py-name" targets="Function Priithon.plt.plot_utility.rotate()=Priithon.plt.plot_utility-module.html#rotate"><a title="Priithon.plt.plot_utility.rotate" class="py-name" href="#" onclick="return doclink('link-46', 'rotate', 'link-46');">rotate</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">dist</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">angle</tt><tt class="py-op">)</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.center_on()=Priithon.plt.plot_utility.box_object-class.html#center_on"><a title="Priithon.plt.plot_utility.box_object.center_on" class="py-name" href="#" onclick="return doclink('link-47', 'center_on', 'link-47');">center_on</a></tt><tt class="py-op">(</tt><tt id="link-48" class="py-name" targets="Class Priithon.plt.plot_utility.point_object=Priithon.plt.plot_utility.point_object-class.html"><a title="Priithon.plt.plot_utility.point_object" class="py-name" href="#" onclick="return doclink('link-48', 'point_object', 'link-48');">point_object</a></tt><tt class="py-op">(</tt><tt class="py-name">new_center</tt><tt class="py-op">.</tt><tt class="py-name">astype</tt><tt class="py-op">(</tt><tt class="py-name">TYPE</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">                 </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">    <tt class="py-comment">#------------------ Trim the edges of the box ----------------#                 </tt> </tt>
<a name="box_object.trim_top"></a><div id="box_object.trim_top-def"><a name="L189"></a><tt class="py-lineno">189</tt> <a class="py-toggle" href="#" id="box_object.trim_top-toggle" onclick="return toggle('box_object.trim_top');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#trim_top">trim_top</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">amount</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.trim_top-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.trim_top-expanded"><a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">        <tt class="py-docstring">""" Remove amount from the top edge of the box.  The size and</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line"><tt class="py-docstring">            topleft corner of the box are altered appropriately.  Margin</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line"><tt class="py-docstring">            specifies an additional amount to be removed.</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt>      </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">+</tt> <tt class="py-name">amount</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.set_height()=Priithon.plt.plot_utility.box_object-class.html#set_height"><a title="Priithon.plt.plot_utility.box_object.set_height" class="py-name" href="#" onclick="return doclink('link-49', 'set_height', 'link-49');">set_height</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-50', 'height', 'link-8');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">amount</tt> <tt class="py-op">-</tt> <tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.trim_left"></a><div id="box_object.trim_left-def"><a name="L196"></a><tt class="py-lineno">196</tt> <a class="py-toggle" href="#" id="box_object.trim_left-toggle" onclick="return toggle('box_object.trim_left');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#trim_left">trim_left</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">amount</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     </tt>
</div><a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">        <tt class="py-docstring">""" Remove amount from the left edge of the box.  The size and</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line"><tt class="py-docstring">            topleft corner of the box are altered appropriately.  Margin</tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line"><tt class="py-docstring">            specifies an additional amount to be removed.</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt>      </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">+</tt> <tt class="py-name">amount</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-51" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.set_width()=Priithon.plt.plot_utility.box_object-class.html#set_width"><a title="Priithon.plt.plot_utility.box_object.set_width" class="py-name" href="#" onclick="return doclink('link-51', 'set_width', 'link-51');">set_width</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-52', 'width', 'link-7');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">amount</tt> <tt class="py-op">-</tt> <tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.trim_right"></a><div id="box_object.trim_right-def"><a name="L203"></a><tt class="py-lineno">203</tt> <a class="py-toggle" href="#" id="box_object.trim_right-toggle" onclick="return toggle('box_object.trim_right');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#trim_right">trim_right</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">amount</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     </tt>
</div><a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">        <tt class="py-docstring">""" Remove amount from the right edge of the box.  The size and</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line"><tt class="py-docstring">            is altered appropriately.  Margin specifies an additional amount</tt> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line"><tt class="py-docstring">            to be removed.</tt> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt>      </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-53" class="py-name"><a title="Priithon.plt.plot_utility.box_object.set_width" class="py-name" href="#" onclick="return doclink('link-53', 'set_width', 'link-51');">set_width</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-54', 'width', 'link-7');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">amount</tt> <tt class="py-op">-</tt> <tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.trim_bottom"></a><div id="box_object.trim_bottom-def"><a name="L209"></a><tt class="py-lineno">209</tt> <a class="py-toggle" href="#" id="box_object.trim_bottom-toggle" onclick="return toggle('box_object.trim_bottom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#trim_bottom">trim_bottom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">amount</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     </tt>
</div><a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line">        <tt class="py-docstring">""" Remove amount from the bottom edge of the box.  The size </tt> </tt>
<a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line"><tt class="py-docstring">            is altered appropriately.  Margin specifies an additional </tt> </tt>
<a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line"><tt class="py-docstring">            amount to be removed.</tt> </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt>              </tt>
<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name"><a title="Priithon.plt.plot_utility.box_object.set_height" class="py-name" href="#" onclick="return doclink('link-55', 'set_height', 'link-49');">set_height</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-56" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-56', 'height', 'link-8');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">amount</tt> <tt class="py-op">-</tt> <tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
</div><a name="box_object.trim_all"></a><div id="box_object.trim_all-def"><a name="L215"></a><tt class="py-lineno">215</tt> <a class="py-toggle" href="#" id="box_object.trim_all-toggle" onclick="return toggle('box_object.trim_all');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#trim_all">trim_all</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">amount</tt><tt class="py-op">,</tt><tt class="py-param">margin</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.trim_all-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.trim_all-expanded"><a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line">        <tt class="py-docstring">""" Remove amount from the all edges of the box.  The size and</tt> </tt>
<a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line"><tt class="py-docstring">            topleft corner of the bow are altered appropriately.  Margin</tt> </tt>
<a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line"><tt class="py-docstring">            specifies an additional amount to be removed.</tt> </tt>
<a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt>      </tt>
<a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-57" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.trim_top()=Priithon.plt.plot_utility.box_object-class.html#trim_top"><a title="Priithon.plt.plot_utility.box_object.trim_top" class="py-name" href="#" onclick="return doclink('link-57', 'trim_top', 'link-57');">trim_top</a></tt><tt class="py-op">(</tt><tt class="py-name">amount</tt><tt class="py-op">,</tt><tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
<a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-58" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.trim_bottom()=Priithon.plt.plot_utility.box_object-class.html#trim_bottom"><a title="Priithon.plt.plot_utility.box_object.trim_bottom" class="py-name" href="#" onclick="return doclink('link-58', 'trim_bottom', 'link-58');">trim_bottom</a></tt><tt class="py-op">(</tt><tt class="py-name">amount</tt><tt class="py-op">,</tt><tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.trim_left()=Priithon.plt.plot_utility.box_object-class.html#trim_left"><a title="Priithon.plt.plot_utility.box_object.trim_left" class="py-name" href="#" onclick="return doclink('link-59', 'trim_left', 'link-59');">trim_left</a></tt><tt class="py-op">(</tt><tt class="py-name">amount</tt><tt class="py-op">,</tt><tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
<a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-60" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_bottom" class="py-name" href="#" onclick="return doclink('link-60', 'trim_bottom', 'link-58');">trim_bottom</a></tt><tt class="py-op">(</tt><tt class="py-name">amount</tt><tt class="py-op">,</tt><tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
</div><a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line">     </tt>
<a name="box_object.inflate"></a><div id="box_object.inflate-def"><a name="L225"></a><tt class="py-lineno">225</tt> <a class="py-toggle" href="#" id="box_object.inflate-toggle" onclick="return toggle('box_object.inflate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#inflate">inflate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">percent</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.inflate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.inflate-expanded"><a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">        <tt class="py-docstring">""" Expand the box in all directions by the specified percentage.</tt> </tt>
<a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line"><tt class="py-docstring">            Values &lt; 1 shrink the box.  The center of the box remains the same.</tt> </tt>
<a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L229"></a><tt class="py-lineno">229</tt>  <tt class="py-line">        <tt class="py-name">old_size</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-61" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-61', 'size', 'link-6');">size</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line">        <tt class="py-name">inflated</tt> <tt class="py-op">=</tt> <tt class="py-name">old_size</tt> <tt class="py-op">*</tt> <tt class="py-name">percent</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line">        <tt id="link-62" class="py-name" targets="Function Priithon.fftfuncs.shift()=Priithon.fftfuncs-module.html#shift"><a title="Priithon.fftfuncs.shift" class="py-name" href="#" onclick="return doclink('link-62', 'shift', 'link-62');">shift</a></tt> <tt class="py-op">=</tt> <tt class="py-number">.5</tt> <tt class="py-op">*</tt> <tt class="py-op">(</tt><tt class="py-name">old_size</tt> <tt class="py-op">-</tt> <tt class="py-name">inflated</tt><tt class="py-op">)</tt> </tt>
<a name="L232"></a><tt class="py-lineno">232</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt> <tt class="py-op">=</tt> <tt id="link-63" class="py-name" targets="Variable Priithon.mandel.floor=Priithon.mandel-module.html#floor,Variable Priithon.plt.floor=Priithon.plt-module.html#floor,Variable Priithon.plt.interface.floor=Priithon.plt.interface-module.html#floor,Variable Priithon.plt.plot_objects.floor=Priithon.plt.plot_objects-module.html#floor,Variable Priithon.plt.plot_utility.floor=Priithon.plt.plot_utility-module.html#floor,Variable Priithon.plt.wxplt.floor=Priithon.plt.wxplt-module.html#floor"><a title="Priithon.mandel.floor
Priithon.plt.floor
Priithon.plt.interface.floor
Priithon.plt.plot_objects.floor
Priithon.plt.plot_utility.floor
Priithon.plt.wxplt.floor" class="py-name" href="#" onclick="return doclink('link-63', 'floor', 'link-63');">floor</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">topleft</tt> <tt class="py-op">+</tt> <tt id="link-64" class="py-name"><a title="Priithon.fftfuncs.shift" class="py-name" href="#" onclick="return doclink('link-64', 'shift', 'link-62');">shift</a></tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">astype</tt><tt class="py-op">(</tt><tt class="py-name">TYPE</tt><tt class="py-op">)</tt> </tt>
<a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-65" class="py-name"><a title="Priithon.plt.plot_objects.text_object.set_size
Priithon.plt.plot_utility.box_object.set_size
Priithon.plt.plot_utility.point_object.set_size" class="py-name" href="#" onclick="return doclink('link-65', 'set_size', 'link-17');">set_size</a></tt><tt class="py-op">(</tt><tt id="link-66" class="py-name"><a title="Priithon.mandel.floor
Priithon.plt.floor
Priithon.plt.interface.floor
Priithon.plt.plot_objects.floor
Priithon.plt.plot_utility.floor
Priithon.plt.wxplt.floor" class="py-name" href="#" onclick="return doclink('link-66', 'floor', 'link-63');">floor</a></tt><tt class="py-op">(</tt><tt class="py-name">inflated</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">astype</tt><tt class="py-op">(</tt><tt class="py-name">TYPE</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line">     </tt>
<a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line">    <tt class="py-comment">#------------------ test point relationships ----------------#</tt> </tt>
<a name="box_object.contains"></a><div id="box_object.contains-def"><a name="L236"></a><tt class="py-lineno">236</tt> <a class="py-toggle" href="#" id="box_object.contains-toggle" onclick="return toggle('box_object.contains');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.box_object-class.html#contains">contains</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">pos</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box_object.contains-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="box_object.contains-expanded"><a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line">        <tt class="py-name">l</tt><tt class="py-op">,</tt><tt class="py-name">r</tt><tt class="py-op">,</tt><tt class="py-name">t</tt><tt class="py-op">,</tt><tt class="py-name">b</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-67" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-67', 'left', 'link-26');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="Priithon.plt.plot_utility.box_object.right" class="py-name" href="#" onclick="return doclink('link-68', 'right', 'link-28');">right</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-69" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-69', 'top', 'link-23');">top</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-70" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-70', 'bottom', 'link-25');">bottom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line">        <tt class="py-comment">#print self.text, self.size(), l,r,t,b</tt> </tt>
<a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#print pos[0],pos[1]</tt> </tt>
<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">l</tt> <tt class="py-op">&lt;=</tt> <tt class="py-name">pos</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">&lt;=</tt> <tt class="py-name">r</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-op">(</tt><tt class="py-name">t</tt> <tt class="py-op">&lt;=</tt> <tt class="py-name">pos</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">&lt;=</tt> <tt class="py-name">b</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-number">1</tt> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">0</tt> </tt>
</div></div><a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line">         </tt>
<a name="point_object"></a><div id="point_object-def"><a name="L244"></a><tt class="py-lineno">244</tt> <a class="py-toggle" href="#" id="point_object-toggle" onclick="return toggle('point_object');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.point_object-class.html">point_object</a><tt class="py-op">(</tt><tt class="py-base-class">box_object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="point_object-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="point_object-expanded"><a name="L245"></a><tt class="py-lineno">245</tt>  <tt class="py-line">    <tt class="py-docstring">""" Useful for laying points (and boxes) in relation to one another.</tt> </tt>
<a name="L246"></a><tt class="py-lineno">246</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line"><tt class="py-docstring">        point_object is a degenerate case of a box_object that has</tt> </tt>
<a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line"><tt class="py-docstring">        zero size.  The set_size() method is not allowed for points. As</tt> </tt>
<a name="L249"></a><tt class="py-lineno">249</tt>  <tt class="py-line"><tt class="py-docstring">        a result, size altering methods such as set_height and trimming</tt> </tt>
<a name="L250"></a><tt class="py-lineno">250</tt>  <tt class="py-line"><tt class="py-docstring">        functions are not valid.  Also, the radial() method always returns</tt> </tt>
<a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line"><tt class="py-docstring">        zero.  Other than that, the standard box_object methods work.</tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line"><tt class="py-docstring">        point_objects can also be used as arguments to box_object methods.</tt> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="point_object.__init__"></a><div id="point_object.__init__-def"><a name="L254"></a><tt class="py-lineno">254</tt> <a class="py-toggle" href="#" id="point_object.__init__-toggle" onclick="return toggle('point_object.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.point_object-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">pt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="point_object.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="point_object.__init__-expanded"><a name="L255"></a><tt class="py-lineno">255</tt>  <tt class="py-line">        <tt id="link-71" class="py-name" targets="Class Priithon.plt.plot_utility.box_object=Priithon.plt.plot_utility.box_object-class.html"><a title="Priithon.plt.plot_utility.box_object" class="py-name" href="#" onclick="return doclink('link-71', 'box_object', 'link-71');">box_object</a></tt><tt class="py-op">.</tt><tt id="link-72" class="py-name" targets="Method Priithon.DragAndDrop.ClipTextPanel.__init__()=Priithon.DragAndDrop.ClipTextPanel-class.html#__init__,Method Priithon.DragAndDrop.FileDropPanel.__init__()=Priithon.DragAndDrop.FileDropPanel-class.html#__init__,Method Priithon.DragAndDrop.MyFileDropTarget.__init__()=Priithon.DragAndDrop.MyFileDropTarget-class.html#__init__,Method Priithon.Mrc.Mrc.__init__()=Priithon.Mrc.Mrc-class.html#__init__,Method Priithon.Mrc.Mrc2.__init__()=Priithon.Mrc.Mrc2-class.html#__init__,Method Priithon.Scientific_IO_TextFile.TextFile.__init__()=Priithon.Scientific_IO_TextFile.TextFile-class.html#__init__,Method Priithon.buttonbox._buttonBox.__init__()=Priithon.buttonbox._buttonBox-class.html#__init__,Method Priithon.fileDropPopup.FileDropTarget.__init__()=Priithon.fileDropPopup.FileDropTarget-class.html#__init__,Method Priithon.gridviewer.ArrayGrid.__init__()=Priithon.gridviewer.ArrayGrid-class.html#__init__,Method Priithon.gridviewer.HugeTable.__init__()=Priithon.gridviewer.HugeTable-class.html#__init__,Method Priithon.gridviewer.HugeTableGrid.__init__()=Priithon.gridviewer.HugeTableGrid-class.html#__init__,Method Priithon.guiExceptionFrame.MyFrame.__init__()=Priithon.guiExceptionFrame.MyFrame-class.html#__init__,Method Priithon.guiInfoFrame.HtmlInfoFrame.__init__()=Priithon.guiInfoFrame.HtmlInfoFrame-class.html#__init__,Method Priithon.guiInfoFrame.HtmlWindow.__init__()=Priithon.guiInfoFrame.HtmlWindow-class.html#__init__,Method Priithon.guiParams.guiParams.__init__()=Priithon.guiParams.guiParams-class.html#__init__,Method Priithon.histogram.HistogramCanvas.__init__()=Priithon.histogram.HistogramCanvas-class.html#__init__,Method Priithon.histogram.MyCanvasBase.__init__()=Priithon.histogram.MyCanvasBase-class.html#__init__,Method Priithon.mmviewer.GLViewer.__init__()=Priithon.mmviewer.GLViewer-class.html#__init__,Method Priithon.mockNDarray.mockNDarray.__init__()=Priithon.mockNDarray.mockNDarray-class.html#__init__,Method Priithon.ndarray_meta.nd_meta_attribute.__init__()=Priithon.ndarray_meta.nd_meta_attribute-class.html#__init__,Method Priithon.plt.dumb_shelve.DbfilenameShelf.__init__()=Priithon.plt.dumb_shelve.DbfilenameShelf-class.html#__init__,Method Priithon.plt.dumbdbm_patched._Database.__init__()=Priithon.plt.dumbdbm_patched._Database-class.html#__init__,Method Priithon.plt.plot_objects.axis_object.__init__()=Priithon.plt.plot_objects.axis_object-class.html#__init__,Method Priithon.plt.plot_objects.axis_window.__init__()=Priithon.plt.plot_objects.axis_window-class.html#__init__,Method Priithon.plt.plot_objects.border_object.__init__()=Priithon.plt.plot_objects.border_object-class.html#__init__,Method Priithon.plt.plot_objects.graphic_list.__init__()=Priithon.plt.plot_objects.graphic_list-class.html#__init__,Method Priithon.plt.plot_objects.image_object.__init__()=Priithon.plt.plot_objects.image_object-class.html#__init__,Method Priithon.plt.plot_objects.legend_object.__init__()=Priithon.plt.plot_objects.legend_object-class.html#__init__,Method Priithon.plt.plot_objects.line_object.__init__()=Priithon.plt.plot_objects.line_object-class.html#__init__,Method Priithon.plt.plot_objects.poly_line.__init__()=Priithon.plt.plot_objects.poly_line-class.html#__init__,Method Priithon.plt.plot_objects.poly_marker.__init__()=Priithon.plt.plot_objects.poly_marker-class.html#__init__,Method Priithon.plt.plot_objects.poly_points.__init__()=Priithon.plt.plot_objects.poly_points-class.html#__init__,Method Priithon.plt.plot_objects.text_object.__init__()=Priithon.plt.plot_objects.text_object-class.html#__init__,Method Priithon.plt.plot_objects.text_window.__init__()=Priithon.plt.plot_objects.text_window-class.html#__init__,Method Priithon.plt.plot_utility.box_object.__init__()=Priithon.plt.plot_utility.box_object-class.html#__init__,Method Priithon.plt.plot_utility.point_object.__init__()=Priithon.plt.plot_utility.point_object-class.html#__init__,Method Priithon.plt.plot_utility.property_object.__init__()=Priithon.plt.plot_utility.property_object-class.html#__init__,Method Priithon.plt.wxplt.graph_printout.__init__()=Priithon.plt.wxplt.graph_printout-class.html#__init__,Method Priithon.plt.wxplt.plot_canvas.__init__()=Priithon.plt.wxplt.plot_canvas-class.html#__init__,Method Priithon.plt.wxplt.plot_frame.__init__()=Priithon.plt.wxplt.plot_frame-class.html#__init__,Method Priithon.py.PyAlaCarte.App.__init__()=Priithon.py.PyAlaCarte.App-class.html#__init__,Method Priithon.py.PyAlaMode.App.__init__()=Priithon.py.PyAlaMode.App-class.html#__init__,Method Priithon.py.PyAlaModeTest.App.__init__()=Priithon.py.PyAlaModeTest.App-class.html#__init__,Method Priithon.py.buffer.Buffer.__init__()=Priithon.py.buffer.Buffer-class.html#__init__,Method Priithon.py.crust.Calltip.__init__()=Priithon.py.crust.Calltip-class.html#__init__,Method Priithon.py.crust.Crust.__init__()=Priithon.py.crust.Crust-class.html#__init__,Method Priithon.py.crust.CrustFrame.__init__()=Priithon.py.crust.CrustFrame-class.html#__init__,Method Priithon.py.crust.DispatcherListing.__init__()=Priithon.py.crust.DispatcherListing-class.html#__init__,Method Priithon.py.crust.Display.__init__()=Priithon.py.crust.Display-class.html#__init__,Method Priithon.py.crust.SessionListing.__init__()=Priithon.py.crust.SessionListing-class.html#__init__,Method Priithon.py.dispatcher.BoundMethodWeakref.__init__()=Priithon.py.dispatcher.BoundMethodWeakref-class.html#__init__,Method Priithon.py.dispatcher.DispatcherError.__init__()=Priithon.py.dispatcher.DispatcherError-class.html#__init__,Method Priithon.py.document.Document.__init__()=Priithon.py.document.Document-class.html#__init__,Method Priithon.py.editor.DialogResults.__init__()=Priithon.py.editor.DialogResults-class.html#__init__,Method Priithon.py.editor.EditWindow.__init__()=Priithon.py.editor.EditWindow-class.html#__init__,Method Priithon.py.editor.Editor.__init__()=Priithon.py.editor.Editor-class.html#__init__,Method Priithon.py.editor.EditorFrame.__init__()=Priithon.py.editor.EditorFrame-class.html#__init__,Method Priithon.py.editor.EditorNotebook.__init__()=Priithon.py.editor.EditorNotebook-class.html#__init__,Method Priithon.py.editor.EditorNotebookFrame.__init__()=Priithon.py.editor.EditorNotebookFrame-class.html#__init__,Method Priithon.py.editor.EditorShellNotebook.__init__()=Priithon.py.editor.EditorShellNotebook-class.html#__init__,Method Priithon.py.editor.EditorShellNotebookFrame.__init__()=Priithon.py.editor.EditorShellNotebookFrame-class.html#__init__,Method Priithon.py.editwindow.EditWindow.__init__()=Priithon.py.editwindow.EditWindow-class.html#__init__,Method Priithon.py.filling.Filling.__init__()=Priithon.py.filling.Filling-class.html#__init__,Method Priithon.py.filling.FillingFrame.__init__()=Priithon.py.filling.FillingFrame-class.html#__init__,Method Priithon.py.filling.FillingText.__init__()=Priithon.py.filling.FillingText-class.html#__init__,Method Priithon.py.filling.FillingTree.__init__()=Priithon.py.filling.FillingTree-class.html#__init__,Method Priithon.py.frame.Frame.__init__()=Priithon.py.frame.Frame-class.html#__init__,Method Priithon.py.interpreter.Interpreter.__init__()=Priithon.py.interpreter.Interpreter-class.html#__init__,Method Priithon.py.interpreter.InterpreterAlaCarte.__init__()=Priithon.py.interpreter.InterpreterAlaCarte-class.html#__init__,Method Priithon.py.pseudo.PseudoFile.__init__()=Priithon.py.pseudo.PseudoFile-class.html#__init__,Method Priithon.py.pseudo.PseudoFileErr.__init__()=Priithon.py.pseudo.PseudoFileErr-class.html#__init__,Method Priithon.py.pseudo.PseudoFileIn.__init__()=Priithon.py.pseudo.PseudoFileIn-class.html#__init__,Method Priithon.py.pseudo.PseudoFileOut.__init__()=Priithon.py.pseudo.PseudoFileOut-class.html#__init__,Method Priithon.py.pseudo.PseudoKeyword.__init__()=Priithon.py.pseudo.PseudoKeyword-class.html#__init__,Method Priithon.py.shell.Shell.__init__()=Priithon.py.shell.Shell-class.html#__init__,Method Priithon.py.shell.ShellFacade.__init__()=Priithon.py.shell.ShellFacade-class.html#__init__,Method Priithon.py.shell.ShellFrame.__init__()=Priithon.py.shell.ShellFrame-class.html#__init__,Method Priithon.readerSPE.File.__init__()=Priithon.readerSPE.File-class.html#__init__,Method Priithon.scalePanel.scalePanel.__init__()=Priithon.scalePanel.scalePanel-class.html#__init__,Method Priithon.splitND.TestTransientPopup.__init__()=Priithon.splitND.TestTransientPopup-class.html#__init__,Method Priithon.splitND.spv.__init__()=Priithon.splitND.spv-class.html#__init__,Method Priithon.splitND2.spv.__init__()=Priithon.splitND2.spv-class.html#__init__,Method Priithon.splitNDcommon.spvCommon.__init__()=Priithon.splitNDcommon.spvCommon-class.html#__init__,Method Priithon.syncViewersGui.syncViewersGui.__init__()=Priithon.syncViewersGui.syncViewersGui-class.html#__init__,Method Priithon.useful.deco_memoized.__init__()=Priithon.useful.deco_memoized-class.html#__init__,Method Priithon.usefulX._listArrayViewer.__init__()=Priithon.usefulX._listArrayViewer-class.html#__init__,Method Priithon.usefulX._listFilesViewer.MyFileDropTarget.__init__()=Priithon.usefulX._listFilesViewer.MyFileDropTarget-class.html#__init__,Method Priithon.usefulX._listFilesViewer.__init__()=Priithon.usefulX._listFilesViewer-class.html#__init__,Method Priithon.viewer.GLViewer.__init__()=Priithon.viewer.GLViewer-class.html#__init__,Method Priithon.viewer2.GLViewer2.__init__()=Priithon.viewer2.GLViewer2-class.html#__init__,Method Priithon.viewerCommon.GLViewerCommon.__init__()=Priithon.viewerCommon.GLViewerCommon-class.html#__init__,Method Priithon.viewerRubberbandMode.viewerRubberbandMode.__init__()=Priithon.viewerRubberbandMode.viewerRubberbandMode-class.html#__init__,Method Priithon.wxAsyncDispatcher.DispatcherConnection.__init__()=Priithon.wxAsyncDispatcher.DispatcherConnection-class.html#__init__,Method Priithon.wxAsyncDispatcher.DispatcherServer.__init__()=Priithon.wxAsyncDispatcher.DispatcherServer-class.html#__init__,Method Priithon.wxAsyncDispatcher.MainWindow.__init__()=Priithon.wxAsyncDispatcher.MainWindow-class.html#__init__,Method Priithon.wxPyPlot.FloatDCWrapper.__init__()=Priithon.wxPyPlot.FloatDCWrapper-class.html#__init__,Method Priithon.wxPyPlot.PlotCanvas.__init__()=Priithon.wxPyPlot.PlotCanvas-class.html#__init__,Method Priithon.wxPyPlot.PlotGraphics.__init__()=Priithon.wxPyPlot.PlotGraphics-class.html#__init__,Method Priithon.wxPyPlot.PolyLine.__init__()=Priithon.wxPyPlot.PolyLine-class.html#__init__,Method Priithon.wxPyPlot.PolyMarker.__init__()=Priithon.wxPyPlot.PolyMarker-class.html#__init__,Method Priithon.wxPyPlot.PolyPoints.__init__()=Priithon.wxPyPlot.PolyPoints-class.html#__init__,Method Priithon.wxPyPlot.plot_printout.__init__()=Priithon.wxPyPlot.plot_printout-class.html#__init__,Method Priithon.zslider.ZSlider.__init__()=Priithon.zslider.ZSlider-class.html#__init__"><a title="Priithon.DragAndDrop.ClipTextPanel.__init__
Priithon.DragAndDrop.FileDropPanel.__init__
Priithon.DragAndDrop.MyFileDropTarget.__init__
Priithon.Mrc.Mrc.__init__
Priithon.Mrc.Mrc2.__init__
Priithon.Scientific_IO_TextFile.TextFile.__init__
Priithon.buttonbox._buttonBox.__init__
Priithon.fileDropPopup.FileDropTarget.__init__
Priithon.gridviewer.ArrayGrid.__init__
Priithon.gridviewer.HugeTable.__init__
Priithon.gridviewer.HugeTableGrid.__init__
Priithon.guiExceptionFrame.MyFrame.__init__
Priithon.guiInfoFrame.HtmlInfoFrame.__init__
Priithon.guiInfoFrame.HtmlWindow.__init__
Priithon.guiParams.guiParams.__init__
Priithon.histogram.HistogramCanvas.__init__
Priithon.histogram.MyCanvasBase.__init__
Priithon.mmviewer.GLViewer.__init__
Priithon.mockNDarray.mockNDarray.__init__
Priithon.ndarray_meta.nd_meta_attribute.__init__
Priithon.plt.dumb_shelve.DbfilenameShelf.__init__
Priithon.plt.dumbdbm_patched._Database.__init__
Priithon.plt.plot_objects.axis_object.__init__
Priithon.plt.plot_objects.axis_window.__init__
Priithon.plt.plot_objects.border_object.__init__
Priithon.plt.plot_objects.graphic_list.__init__
Priithon.plt.plot_objects.image_object.__init__
Priithon.plt.plot_objects.legend_object.__init__
Priithon.plt.plot_objects.line_object.__init__
Priithon.plt.plot_objects.poly_line.__init__
Priithon.plt.plot_objects.poly_marker.__init__
Priithon.plt.plot_objects.poly_points.__init__
Priithon.plt.plot_objects.text_object.__init__
Priithon.plt.plot_objects.text_window.__init__
Priithon.plt.plot_utility.box_object.__init__
Priithon.plt.plot_utility.point_object.__init__
Priithon.plt.plot_utility.property_object.__init__
Priithon.plt.wxplt.graph_printout.__init__
Priithon.plt.wxplt.plot_canvas.__init__
Priithon.plt.wxplt.plot_frame.__init__
Priithon.py.PyAlaCarte.App.__init__
Priithon.py.PyAlaMode.App.__init__
Priithon.py.PyAlaModeTest.App.__init__
Priithon.py.buffer.Buffer.__init__
Priithon.py.crust.Calltip.__init__
Priithon.py.crust.Crust.__init__
Priithon.py.crust.CrustFrame.__init__
Priithon.py.crust.DispatcherListing.__init__
Priithon.py.crust.Display.__init__
Priithon.py.crust.SessionListing.__init__
Priithon.py.dispatcher.BoundMethodWeakref.__init__
Priithon.py.dispatcher.DispatcherError.__init__
Priithon.py.document.Document.__init__
Priithon.py.editor.DialogResults.__init__
Priithon.py.editor.EditWindow.__init__
Priithon.py.editor.Editor.__init__
Priithon.py.editor.EditorFrame.__init__
Priithon.py.editor.EditorNotebook.__init__
Priithon.py.editor.EditorNotebookFrame.__init__
Priithon.py.editor.EditorShellNotebook.__init__
Priithon.py.editor.EditorShellNotebookFrame.__init__
Priithon.py.editwindow.EditWindow.__init__
Priithon.py.filling.Filling.__init__
Priithon.py.filling.FillingFrame.__init__
Priithon.py.filling.FillingText.__init__
Priithon.py.filling.FillingTree.__init__
Priithon.py.frame.Frame.__init__
Priithon.py.interpreter.Interpreter.__init__
Priithon.py.interpreter.InterpreterAlaCarte.__init__
Priithon.py.pseudo.PseudoFile.__init__
Priithon.py.pseudo.PseudoFileErr.__init__
Priithon.py.pseudo.PseudoFileIn.__init__
Priithon.py.pseudo.PseudoFileOut.__init__
Priithon.py.pseudo.PseudoKeyword.__init__
Priithon.py.shell.Shell.__init__
Priithon.py.shell.ShellFacade.__init__
Priithon.py.shell.ShellFrame.__init__
Priithon.readerSPE.File.__init__
Priithon.scalePanel.scalePanel.__init__
Priithon.splitND.TestTransientPopup.__init__
Priithon.splitND.spv.__init__
Priithon.splitND2.spv.__init__
Priithon.splitNDcommon.spvCommon.__init__
Priithon.syncViewersGui.syncViewersGui.__init__
Priithon.useful.deco_memoized.__init__
Priithon.usefulX._listArrayViewer.__init__
Priithon.usefulX._listFilesViewer.MyFileDropTarget.__init__
Priithon.usefulX._listFilesViewer.__init__
Priithon.viewer.GLViewer.__init__
Priithon.viewer2.GLViewer2.__init__
Priithon.viewerCommon.GLViewerCommon.__init__
Priithon.viewerRubberbandMode.viewerRubberbandMode.__init__
Priithon.wxAsyncDispatcher.DispatcherConnection.__init__
Priithon.wxAsyncDispatcher.DispatcherServer.__init__
Priithon.wxAsyncDispatcher.MainWindow.__init__
Priithon.wxPyPlot.FloatDCWrapper.__init__
Priithon.wxPyPlot.PlotCanvas.__init__
Priithon.wxPyPlot.PlotGraphics.__init__
Priithon.wxPyPlot.PolyLine.__init__
Priithon.wxPyPlot.PolyMarker.__init__
Priithon.wxPyPlot.PolyPoints.__init__
Priithon.wxPyPlot.plot_printout.__init__
Priithon.zslider.ZSlider.__init__" class="py-name" href="#" onclick="return doclink('link-72', '__init__', 'link-72');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">pt</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">)</tt>         </tt>
</div><a name="point_object.radial"></a><div id="point_object.radial-def"><a name="L256"></a><tt class="py-lineno">256</tt> <a class="py-toggle" href="#" id="point_object.radial-toggle" onclick="return toggle('point_object.radial');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.point_object-class.html#radial">radial</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">angle</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>         </tt>
</div><a name="L257"></a><tt class="py-lineno">257</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">0</tt>         </tt>
</div><a name="point_object.set_size"></a><div id="point_object.set_size-def"><a name="L258"></a><tt class="py-lineno">258</tt> <a class="py-toggle" href="#" id="point_object.set_size-toggle" onclick="return toggle('point_object.set_size');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.point_object-class.html#set_size">set_size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">sz</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="point_object.set_size-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="point_object.set_size-expanded"><a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line">        <tt class="py-comment"># this'll catch all set_size, trim_xxx and other inappropriate methods</tt> </tt>
<a name="L260"></a><tt class="py-lineno">260</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">raise</tt> <tt class="py-name">TypeError</tt><tt class="py-op">,</tt> <tt class="py-string">"can't set the size of a point_object"</tt> </tt>
</div></div><a name="L261"></a><tt class="py-lineno">261</tt>  <tt class="py-line"> </tt>
<a name="bounding_points"></a><div id="bounding_points-def"><a name="L262"></a><tt class="py-lineno">262</tt> <a class="py-toggle" href="#" id="bounding_points-toggle" onclick="return toggle('bounding_points');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility-module.html#bounding_points">bounding_points</a><tt class="py-op">(</tt><tt class="py-param">objects</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="bounding_points-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="bounding_points-expanded"><a name="L263"></a><tt class="py-lineno">263</tt>  <tt class="py-line">    <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt id="link-73" class="py-name" targets="Function Priithon.useful.min()=Priithon.useful-module.html#min"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-73', 'min', 'link-73');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt id="link-74" class="py-name" targets="Variable Priithon.viewer.x=Priithon.viewer-module.html#x,Variable Priithon.viewer2.x=Priithon.viewer2-module.html#x,Variable Priithon.viewerCommon.x=Priithon.viewerCommon-module.html#x"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-74', 'x', 'link-74');">x</a></tt><tt class="py-op">:</tt> <tt id="link-75" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-75', 'x', 'link-74');">x</a></tt><tt class="py-op">.</tt><tt id="link-76" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-76', 'left', 'link-26');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">objects</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L264"></a><tt class="py-lineno">264</tt>  <tt class="py-line">    <tt class="py-name">t</tt> <tt class="py-op">=</tt> <tt id="link-77" class="py-name"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-77', 'min', 'link-73');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt id="link-78" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-78', 'x', 'link-74');">x</a></tt><tt class="py-op">:</tt> <tt id="link-79" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-79', 'x', 'link-74');">x</a></tt><tt class="py-op">.</tt><tt id="link-80" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-80', 'top', 'link-23');">top</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">objects</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line">    <tt class="py-name">r</tt> <tt class="py-op">=</tt> <tt id="link-81" class="py-name"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-81', 'min', 'link-73');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt id="link-82" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-82', 'x', 'link-74');">x</a></tt><tt class="py-op">:</tt> <tt id="link-83" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-83', 'x', 'link-74');">x</a></tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="Priithon.plt.plot_utility.box_object.right" class="py-name" href="#" onclick="return doclink('link-84', 'right', 'link-28');">right</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">objects</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L266"></a><tt class="py-lineno">266</tt>  <tt class="py-line">    <tt class="py-name">b</tt> <tt class="py-op">=</tt> <tt id="link-85" class="py-name"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-85', 'min', 'link-73');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt id="link-86" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-86', 'x', 'link-74');">x</a></tt><tt class="py-op">:</tt> <tt id="link-87" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-87', 'x', 'link-74');">x</a></tt><tt class="py-op">.</tt><tt id="link-88" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-88', 'bottom', 'link-25');">bottom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">objects</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L267"></a><tt class="py-lineno">267</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">l</tt><tt class="py-op">,</tt><tt class="py-name">t</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-name">r</tt><tt class="py-op">,</tt><tt class="py-name">b</tt><tt class="py-op">)</tt> </tt>
</div><a name="L268"></a><tt class="py-lineno">268</tt>  <tt class="py-line"> </tt>
<a name="bounding_box"></a><div id="bounding_box-def"><a name="L269"></a><tt class="py-lineno">269</tt> <a class="py-toggle" href="#" id="bounding_box-toggle" onclick="return toggle('bounding_box');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility-module.html#bounding_box">bounding_box</a><tt class="py-op">(</tt><tt class="py-param">objects</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="bounding_box-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="bounding_box-expanded"><a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line">    <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt id="link-89" class="py-name"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-89', 'min', 'link-73');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt id="link-90" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-90', 'x', 'link-74');">x</a></tt><tt class="py-op">:</tt> <tt id="link-91" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-91', 'x', 'link-74');">x</a></tt><tt class="py-op">.</tt><tt id="link-92" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-92', 'left', 'link-26');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">objects</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line">    <tt class="py-name">t</tt> <tt class="py-op">=</tt> <tt id="link-93" class="py-name"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-93', 'min', 'link-73');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt id="link-94" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-94', 'x', 'link-74');">x</a></tt><tt class="py-op">:</tt> <tt id="link-95" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-95', 'x', 'link-74');">x</a></tt><tt class="py-op">.</tt><tt id="link-96" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-96', 'top', 'link-23');">top</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">objects</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line">    <tt class="py-name">r</tt> <tt class="py-op">=</tt> <tt id="link-97" class="py-name"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-97', 'min', 'link-73');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt id="link-98" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-98', 'x', 'link-74');">x</a></tt><tt class="py-op">:</tt> <tt id="link-99" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-99', 'x', 'link-74');">x</a></tt><tt class="py-op">.</tt><tt id="link-100" class="py-name"><a title="Priithon.plt.plot_utility.box_object.right" class="py-name" href="#" onclick="return doclink('link-100', 'right', 'link-28');">right</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">objects</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line">    <tt class="py-name">b</tt> <tt class="py-op">=</tt> <tt id="link-101" class="py-name"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-101', 'min', 'link-73');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt id="link-102" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-102', 'x', 'link-74');">x</a></tt><tt class="py-op">:</tt> <tt id="link-103" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-103', 'x', 'link-74');">x</a></tt><tt class="py-op">.</tt><tt id="link-104" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-104', 'bottom', 'link-25');">bottom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">objects</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-105" class="py-name"><a title="Priithon.plt.plot_utility.box_object" class="py-name" href="#" onclick="return doclink('link-105', 'box_object', 'link-71');">box_object</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">l</tt><tt class="py-op">,</tt><tt class="py-name">t</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-name">r</tt><tt class="py-op">-</tt><tt class="py-name">l</tt><tt class="py-op">,</tt><tt class="py-name">b</tt><tt class="py-op">-</tt><tt class="py-name">t</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L275"></a><tt class="py-lineno">275</tt>  <tt class="py-line"> </tt>
<a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line"><tt class="py-comment">#----------------------------------------------------------</tt> </tt>
<a name="L277"></a><tt class="py-lineno">277</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#               Simple Property class</tt> </tt>
<a name="L278"></a><tt class="py-lineno">278</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#----------------------------------------------------------</tt> </tt>
<a name="L279"></a><tt class="py-lineno">279</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="property_object"></a><div id="property_object-def"><a name="L280"></a><tt class="py-lineno">280</tt> <a class="py-toggle" href="#" id="property_object-toggle" onclick="return toggle('property_object');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.property_object-class.html">property_object</a><tt class="py-op">:</tt> </tt>
</div><div id="property_object-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="property_object-expanded"><a name="L281"></a><tt class="py-lineno">281</tt>  <tt class="py-line">    <tt class="py-docstring">""" Base class for graph object with properties like 'color', 'font', etc.</tt> </tt>
<a name="L282"></a><tt class="py-lineno">282</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L283"></a><tt class="py-lineno">283</tt>  <tt class="py-line"><tt class="py-docstring">        Many object have a standard set of properties that describe the</tt> </tt>
<a name="L284"></a><tt class="py-lineno">284</tt>  <tt class="py-line"><tt class="py-docstring">        object.  Text objects, for example, have a color, font, and style.</tt> </tt>
<a name="L285"></a><tt class="py-lineno">285</tt>  <tt class="py-line"><tt class="py-docstring">        These attirbutes often have default values and perhaps only a range</tt> </tt>
<a name="L286"></a><tt class="py-lineno">286</tt>  <tt class="py-line"><tt class="py-docstring">        of acceptable values.  Every class derived from this one must have</tt> </tt>
<a name="L287"></a><tt class="py-lineno">287</tt>  <tt class="py-line"><tt class="py-docstring">        the variable "_attributes" defined at the class level.  The keys of</tt> </tt>
<a name="L288"></a><tt class="py-lineno">288</tt>  <tt class="py-line"><tt class="py-docstring">        this dictionary are the names of the class attributes.  The value</tt> </tt>
<a name="L289"></a><tt class="py-lineno">289</tt>  <tt class="py-line"><tt class="py-docstring">        for each key is a list with three entries.  The first is the default</tt> </tt>
<a name="L290"></a><tt class="py-lineno">290</tt>  <tt class="py-line"><tt class="py-docstring">        value for the attribute, the second is a list of acceptable values</tt> </tt>
<a name="L291"></a><tt class="py-lineno">291</tt>  <tt class="py-line"><tt class="py-docstring">        and the third is a short text description of the attribute.  FOr</tt> </tt>
<a name="L292"></a><tt class="py-lineno">292</tt>  <tt class="py-line"><tt class="py-docstring">        example:</tt> </tt>
<a name="L293"></a><tt class="py-lineno">293</tt>  <tt class="py-line"><tt class="py-docstring">          class text_object(property_class):</tt> </tt>
<a name="L294"></a><tt class="py-lineno">294</tt>  <tt class="py-line"><tt class="py-docstring">            _attributes = { 'color': ['black',['black','red','blue'],</tt> </tt>
<a name="L295"></a><tt class="py-lineno">295</tt>  <tt class="py-line"><tt class="py-docstring">                                      "The color of the text" ],</tt> </tt>
<a name="L296"></a><tt class="py-lineno">296</tt>  <tt class="py-line"><tt class="py-docstring">                            'style': ['normal',['normal','bold'],</tt> </tt>
<a name="L297"></a><tt class="py-lineno">297</tt>  <tt class="py-line"><tt class="py-docstring">                                      "The style of the text" ],}</tt> </tt>
<a name="L298"></a><tt class="py-lineno">298</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L299"></a><tt class="py-lineno">299</tt>  <tt class="py-line"><tt class="py-docstring">        Currently only the first entry is used.  The second is rather limited</tt> </tt>
<a name="L300"></a><tt class="py-lineno">300</tt>  <tt class="py-line"><tt class="py-docstring">        in functionality, but might be useful for automatically generating</tt> </tt>
<a name="L301"></a><tt class="py-lineno">301</tt>  <tt class="py-line"><tt class="py-docstring">        dialog boxes.</tt> </tt>
<a name="L302"></a><tt class="py-lineno">302</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L303"></a><tt class="py-lineno">303</tt>  <tt class="py-line"><tt class="py-docstring">        Graphite has a more flexible property system, but it is somewhat</tt> </tt>
<a name="L304"></a><tt class="py-lineno">304</tt>  <tt class="py-line"><tt class="py-docstring">        complex.  Zope also has a nice property structure.  If we run into</tt> </tt>
<a name="L305"></a><tt class="py-lineno">305</tt>  <tt class="py-line"><tt class="py-docstring">        major limitations with this 15 line implementation, we might look</tt> </tt>
<a name="L306"></a><tt class="py-lineno">306</tt>  <tt class="py-line"><tt class="py-docstring">        here for inspiration (or adoption...).</tt> </tt>
<a name="L307"></a><tt class="py-lineno">307</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L308"></a><tt class="py-lineno">308</tt>  <tt class="py-line"><tt class="py-docstring">        There is no type safety enforced here which could cause so problems</tt> </tt>
<a name="L309"></a><tt class="py-lineno">309</tt>  <tt class="py-line"><tt class="py-docstring">        for unsuspecting users.  Maybe the optional typing of future Python</tt> </tt>
<a name="L310"></a><tt class="py-lineno">310</tt>  <tt class="py-line"><tt class="py-docstring">        versions will mitigate this.</tt> </tt>
<a name="L311"></a><tt class="py-lineno">311</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt>     </tt>
<a name="property_object.__init__"></a><div id="property_object.__init__-def"><a name="L312"></a><tt class="py-lineno">312</tt> <a class="py-toggle" href="#" id="property_object.__init__-toggle" onclick="return toggle('property_object.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.property_object-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">kw</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">attr</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="property_object.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="property_object.__init__-expanded"><a name="L313"></a><tt class="py-lineno">313</tt>  <tt class="py-line">        <tt class="py-name">attrs</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">;</tt><tt class="py-name">attrs</tt><tt class="py-op">.</tt><tt id="link-106" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.update()=Priithon.plt.wxplt.plot_canvas-class.html#update,Method Priithon.plt.wxplt.plot_frame.update()=Priithon.plt.wxplt.plot_frame-class.html#update"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-106', 'update', 'link-106');">update</a></tt><tt class="py-op">(</tt><tt class="py-name">kw</tt><tt class="py-op">)</tt><tt class="py-op">;</tt> </tt>
<a name="L314"></a><tt class="py-lineno">314</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">attr</tt><tt class="py-op">:</tt> <tt class="py-name">attrs</tt><tt class="py-op">.</tt><tt id="link-107" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-107', 'update', 'link-106');">update</a></tt><tt class="py-op">(</tt><tt class="py-name">attr</tt><tt class="py-op">)</tt> </tt>
<a name="L315"></a><tt class="py-lineno">315</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-108" class="py-name" targets="Variable Priithon.py.crust.Crust.name=Priithon.py.crust.Crust-class.html#name,Variable Priithon.py.crust.CrustFrame.name=Priithon.py.crust.CrustFrame-class.html#name,Variable Priithon.py.filling.Filling.name=Priithon.py.filling.Filling-class.html#name,Variable Priithon.py.filling.FillingFrame.name=Priithon.py.filling.FillingFrame-class.html#name,Variable Priithon.py.filling.FillingText.name=Priithon.py.filling.FillingText-class.html#name,Variable Priithon.py.filling.FillingTree.name=Priithon.py.filling.FillingTree-class.html#name,Variable Priithon.py.shell.Shell.name=Priithon.py.shell.Shell-class.html#name,Variable Priithon.py.shell.ShellFacade.name=Priithon.py.shell.ShellFacade-class.html#name,Variable Priithon.py.shell.ShellFrame.name=Priithon.py.shell.ShellFrame-class.html#name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-108', 'name', 'link-108');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">value</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-109" class="py-name" targets="Variable Priithon.plt.plot_objects.axis_object._attributes=Priithon.plt.plot_objects.axis_object-class.html#_attributes,Variable Priithon.plt.plot_objects.border_object._attributes=Priithon.plt.plot_objects.border_object-class.html#_attributes,Variable Priithon.plt.plot_objects.image_object._attributes=Priithon.plt.plot_objects.image_object-class.html#_attributes,Variable Priithon.plt.plot_objects.legend_object._attributes=Priithon.plt.plot_objects.legend_object-class.html#_attributes,Variable Priithon.plt.plot_objects.line_object._attributes=Priithon.plt.plot_objects.line_object-class.html#_attributes,Variable Priithon.plt.plot_objects.poly_line._attributes=Priithon.plt.plot_objects.poly_line-class.html#_attributes,Variable Priithon.plt.plot_objects.poly_marker._attributes=Priithon.plt.plot_objects.poly_marker-class.html#_attributes,Variable Priithon.plt.plot_objects.text_object._attributes=Priithon.plt.plot_objects.text_object-class.html#_attributes,Variable Priithon.plt.wxplt.plot_canvas._attributes=Priithon.plt.wxplt.plot_canvas-class.html#_attributes,Variable Priithon.wxPyPlot.PolyLine._attributes=Priithon.wxPyPlot.PolyLine-class.html#_attributes,Variable Priithon.wxPyPlot.PolyMarker._attributes=Priithon.wxPyPlot.PolyMarker-class.html#_attributes"><a title="Priithon.plt.plot_objects.axis_object._attributes
Priithon.plt.plot_objects.border_object._attributes
Priithon.plt.plot_objects.image_object._attributes
Priithon.plt.plot_objects.legend_object._attributes
Priithon.plt.plot_objects.line_object._attributes
Priithon.plt.plot_objects.poly_line._attributes
Priithon.plt.plot_objects.poly_marker._attributes
Priithon.plt.plot_objects.text_object._attributes
Priithon.plt.wxplt.plot_canvas._attributes
Priithon.wxPyPlot.PolyLine._attributes
Priithon.wxPyPlot.PolyMarker._attributes" class="py-name" href="#" onclick="return doclink('link-109', '_attributes', 'link-109');">_attributes</a></tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L316"></a><tt class="py-lineno">316</tt>  <tt class="py-line">            <tt class="py-name">val</tt> <tt class="py-op">=</tt> <tt class="py-name">value</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L317"></a><tt class="py-lineno">317</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L318"></a><tt class="py-lineno">318</tt>  <tt class="py-line">                <tt class="py-name">val</tt> <tt class="py-op">=</tt> <tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt id="link-110" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-110', 'name', 'link-108');">name</a></tt><tt class="py-op">]</tt> </tt>
<a name="L319"></a><tt class="py-lineno">319</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">KeyError</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
<a name="L320"></a><tt class="py-lineno">320</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt id="link-111" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-111', 'name', 'link-108');">name</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">val</tt> </tt>
</div><a name="property_object.reset_default"></a><div id="property_object.reset_default-def"><a name="L321"></a><tt class="py-lineno">321</tt> <a class="py-toggle" href="#" id="property_object.reset_default-toggle" onclick="return toggle('property_object.reset_default');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.property_object-class.html#reset_default">reset_default</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="property_object.reset_default-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="property_object.reset_default-expanded"><a name="L322"></a><tt class="py-lineno">322</tt>  <tt class="py-line">        <tt class="py-docstring">""" Reset the objects attributes to their default values.</tt> </tt>
<a name="L323"></a><tt class="py-lineno">323</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L324"></a><tt class="py-lineno">324</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-112" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-112', 'name', 'link-108');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">value</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="Priithon.plt.plot_objects.axis_object._attributes
Priithon.plt.plot_objects.border_object._attributes
Priithon.plt.plot_objects.image_object._attributes
Priithon.plt.plot_objects.legend_object._attributes
Priithon.plt.plot_objects.line_object._attributes
Priithon.plt.plot_objects.poly_line._attributes
Priithon.plt.plot_objects.poly_marker._attributes
Priithon.plt.plot_objects.text_object._attributes
Priithon.plt.wxplt.plot_canvas._attributes
Priithon.wxPyPlot.PolyLine._attributes
Priithon.wxPyPlot.PolyMarker._attributes" class="py-name" href="#" onclick="return doclink('link-113', '_attributes', 'link-109');">_attributes</a></tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L325"></a><tt class="py-lineno">325</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt id="link-114" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-114', 'name', 'link-108');">name</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">value</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
</div><a name="L326"></a><tt class="py-lineno">326</tt>  <tt class="py-line"> </tt>
<a name="property_object.clone_properties"></a><div id="property_object.clone_properties-def"><a name="L327"></a><tt class="py-lineno">327</tt> <a class="py-toggle" href="#" id="property_object.clone_properties-toggle" onclick="return toggle('property_object.clone_properties');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility.property_object-class.html#clone_properties">clone_properties</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">other</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="property_object.clone_properties-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="property_object.clone_properties-expanded"><a name="L328"></a><tt class="py-lineno">328</tt>  <tt class="py-line">            <tt class="py-docstring">""" Reset the objects attributes to their default values.</tt> </tt>
<a name="L329"></a><tt class="py-lineno">329</tt>  <tt class="py-line"><tt class="py-docstring">            """</tt> </tt>
<a name="L330"></a><tt class="py-lineno">330</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-115" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-115', 'name', 'link-108');">name</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt id="link-116" class="py-name"><a title="Priithon.plt.plot_objects.axis_object._attributes
Priithon.plt.plot_objects.border_object._attributes
Priithon.plt.plot_objects.image_object._attributes
Priithon.plt.plot_objects.legend_object._attributes
Priithon.plt.plot_objects.line_object._attributes
Priithon.plt.plot_objects.poly_line._attributes
Priithon.plt.plot_objects.poly_marker._attributes
Priithon.plt.plot_objects.text_object._attributes
Priithon.plt.wxplt.plot_canvas._attributes
Priithon.wxPyPlot.PolyLine._attributes
Priithon.wxPyPlot.PolyMarker._attributes" class="py-name" href="#" onclick="return doclink('link-116', '_attributes', 'link-109');">_attributes</a></tt><tt class="py-op">.</tt><tt id="link-117" class="py-name" targets="Method Priithon.plt.dumbdbm_patched._Database.keys()=Priithon.plt.dumbdbm_patched._Database-class.html#keys"><a title="Priithon.plt.dumbdbm_patched._Database.keys" class="py-name" href="#" onclick="return doclink('link-117', 'keys', 'link-117');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L331"></a><tt class="py-lineno">331</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt id="link-118" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-118', 'name', 'link-108');">name</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt id="link-119" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-119', 'name', 'link-108');">name</a></tt><tt class="py-op">]</tt> </tt>
</div></div><a name="L332"></a><tt class="py-lineno">332</tt>  <tt class="py-line"> </tt>
<a name="L333"></a><tt class="py-lineno">333</tt>  <tt class="py-line"><tt class="py-comment">#----------------------------------------------------------#</tt> </tt>
<a name="L334"></a><tt class="py-lineno">334</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#-------------- Axis and Tick mark utilities --------------#</tt> </tt>
<a name="L335"></a><tt class="py-lineno">335</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#----------------------------------------------------------#</tt> </tt>
<a name="L336"></a><tt class="py-lineno">336</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="rotate"></a><div id="rotate-def"><a name="L337"></a><tt class="py-lineno">337</tt> <a class="py-toggle" href="#" id="rotate-toggle" onclick="return toggle('rotate');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility-module.html#rotate">rotate</a><tt class="py-op">(</tt><tt class="py-param">pts</tt><tt class="py-op">,</tt><tt class="py-param">center</tt><tt class="py-op">,</tt><tt class="py-param">angle</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="rotate-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="rotate-expanded"><a name="L338"></a><tt class="py-lineno">338</tt>  <tt class="py-line">    <tt class="py-docstring">""" pts is a Nx2 array of N (x,y) point pairs.  The points</tt> </tt>
<a name="L339"></a><tt class="py-lineno">339</tt>  <tt class="py-line"><tt class="py-docstring">        are rotated counter-clockwise around a center (x,y) point</tt> </tt>
<a name="L340"></a><tt class="py-lineno">340</tt>  <tt class="py-line"><tt class="py-docstring">        the specified angle (in radians).</tt> </tt>
<a name="L341"></a><tt class="py-lineno">341</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L342"></a><tt class="py-lineno">342</tt>  <tt class="py-line">    <tt class="py-name">t_pts</tt> <tt class="py-op">=</tt> <tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt class="py-name">pts</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt id="link-120" class="py-name"><a title="Priithon.plt.plot_utility.box_object.center
Priithon.viewerCommon.GLViewerCommon.center" class="py-name" href="#" onclick="return doclink('link-120', 'center', 'link-45');">center</a></tt><tt class="py-op">)</tt> </tt>
<a name="L343"></a><tt class="py-lineno">343</tt>  <tt class="py-line">    <tt class="py-name">transform</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-op">(</tt><tt id="link-121" class="py-name" targets="Variable Priithon.mandel.cos=Priithon.mandel-module.html#cos,Variable Priithon.plt.cos=Priithon.plt-module.html#cos,Variable Priithon.plt.interface.cos=Priithon.plt.interface-module.html#cos,Variable Priithon.plt.plot_objects.cos=Priithon.plt.plot_objects-module.html#cos,Variable Priithon.plt.plot_utility.cos=Priithon.plt.plot_utility-module.html#cos,Variable Priithon.plt.wxplt.cos=Priithon.plt.wxplt-module.html#cos"><a title="Priithon.mandel.cos
Priithon.plt.cos
Priithon.plt.interface.cos
Priithon.plt.plot_objects.cos
Priithon.plt.plot_utility.cos
Priithon.plt.wxplt.cos" class="py-name" href="#" onclick="return doclink('link-121', 'cos', 'link-121');">cos</a></tt><tt class="py-op">(</tt><tt class="py-name">angle</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt id="link-122" class="py-name" targets="Variable Priithon.mandel.sin=Priithon.mandel-module.html#sin,Variable Priithon.plt.interface.sin=Priithon.plt.interface-module.html#sin,Variable Priithon.plt.plot_objects.sin=Priithon.plt.plot_objects-module.html#sin,Variable Priithon.plt.plot_utility.sin=Priithon.plt.plot_utility-module.html#sin,Variable Priithon.plt.sin=Priithon.plt-module.html#sin,Variable Priithon.plt.wxplt.sin=Priithon.plt.wxplt-module.html#sin"><a title="Priithon.mandel.sin
Priithon.plt.interface.sin
Priithon.plt.plot_objects.sin
Priithon.plt.plot_utility.sin
Priithon.plt.sin
Priithon.plt.wxplt.sin" class="py-name" href="#" onclick="return doclink('link-122', 'sin', 'link-122');">sin</a></tt><tt class="py-op">(</tt><tt class="py-name">angle</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L344"></a><tt class="py-lineno">344</tt>  <tt class="py-line">                        <tt class="py-op">(</tt><tt id="link-123" class="py-name"><a title="Priithon.mandel.sin
Priithon.plt.interface.sin
Priithon.plt.plot_objects.sin
Priithon.plt.plot_utility.sin
Priithon.plt.sin
Priithon.plt.wxplt.sin" class="py-name" href="#" onclick="return doclink('link-123', 'sin', 'link-122');">sin</a></tt><tt class="py-op">(</tt><tt class="py-name">angle</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-124" class="py-name"><a title="Priithon.mandel.cos
Priithon.plt.cos
Priithon.plt.interface.cos
Priithon.plt.plot_objects.cos
Priithon.plt.plot_utility.cos
Priithon.plt.wxplt.cos" class="py-name" href="#" onclick="return doclink('link-124', 'cos', 'link-121');">cos</a></tt><tt class="py-op">(</tt><tt class="py-name">angle</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L345"></a><tt class="py-lineno">345</tt>  <tt class="py-line">    <tt class="py-name">rotated</tt> <tt class="py-op">=</tt> <tt id="link-125" class="py-name" targets="Method Priithon.mockNDarray.mockNDarray.transpose()=Priithon.mockNDarray.mockNDarray-class.html#transpose"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-125', 'transpose', 'link-125');">transpose</a></tt><tt class="py-op">(</tt><tt class="py-name">dot</tt><tt class="py-op">(</tt><tt class="py-name">transform</tt><tt class="py-op">,</tt> <tt id="link-126" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-126', 'transpose', 'link-125');">transpose</a></tt><tt class="py-op">(</tt><tt class="py-name">t_pts</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L346"></a><tt class="py-lineno">346</tt>  <tt class="py-line">    <tt class="py-name">t_pts</tt> <tt class="py-op">=</tt> <tt class="py-name">around</tt><tt class="py-op">(</tt><tt class="py-name">rotated</tt> <tt class="py-op">+</tt> <tt id="link-127" class="py-name"><a title="Priithon.plt.plot_utility.box_object.center
Priithon.viewerCommon.GLViewerCommon.center" class="py-name" href="#" onclick="return doclink('link-127', 'center', 'link-45');">center</a></tt><tt class="py-op">)</tt> </tt>
<a name="L347"></a><tt class="py-lineno">347</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">t_pts</tt><tt class="py-op">.</tt><tt class="py-name">astype</tt><tt class="py-op">(</tt><tt class="py-name">TYPE</tt><tt class="py-op">)</tt> </tt>
</div><a name="L348"></a><tt class="py-lineno">348</tt>  <tt class="py-line"> </tt>
<a name="L349"></a><tt class="py-lineno">349</tt>  <tt class="py-line"><tt class="py-comment">#now in numpy - but TODO: CHECK 0 case</tt> </tt>
<a name="L350"></a><tt class="py-lineno">350</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># def log2(num):</tt> </tt>
<a name="L351"></a><tt class="py-lineno">351</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     """ Log base 2 of a number ( or array)</tt> </tt>
<a name="L352"></a><tt class="py-lineno">352</tt>  <tt class="py-line"><tt class="py-comment"></tt>         </tt>
<a name="L353"></a><tt class="py-lineno">353</tt>  <tt class="py-line"><tt class="py-comment">#         !! 1e-16 is here to prevent errors when log is 0</tt> </tt>
<a name="L354"></a><tt class="py-lineno">354</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     """</tt> </tt>
<a name="L355"></a><tt class="py-lineno">355</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     if is_number(num) and num == 0: </tt> </tt>
<a name="L356"></a><tt class="py-lineno">356</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#         num = num + 1e-16</tt> </tt>
<a name="L357"></a><tt class="py-lineno">357</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     elif type(num) == type(array([])):</tt> </tt>
<a name="L358"></a><tt class="py-lineno">358</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#         putmask(num,equal(num,0.),1e-16)    </tt> </tt>
<a name="L359"></a><tt class="py-lineno">359</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     return log10(num)/log10(2)</tt> </tt>
<a name="L360"></a><tt class="py-lineno">360</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="is_base2"></a><div id="is_base2-def"><a name="L361"></a><tt class="py-lineno">361</tt> <a class="py-toggle" href="#" id="is_base2-toggle" onclick="return toggle('is_base2');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility-module.html#is_base2">is_base2</a><tt class="py-op">(</tt><tt class="py-param">range</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="is_base2-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="is_base2-expanded"><a name="L362"></a><tt class="py-lineno">362</tt>  <tt class="py-line">    <tt class="py-docstring">" True if value is base 2 (2, 4, 8, 16, ...)"</tt> </tt>
<a name="L363"></a><tt class="py-lineno">363</tt>  <tt class="py-line">    <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt id="link-128" class="py-name" targets="Variable Priithon.mandel.log2=Priithon.mandel-module.html#log2,Variable Priithon.plt.interface.log2=Priithon.plt.interface-module.html#log2,Variable Priithon.plt.log2=Priithon.plt-module.html#log2,Variable Priithon.plt.plot_objects.log2=Priithon.plt.plot_objects-module.html#log2,Variable Priithon.plt.plot_utility.log2=Priithon.plt.plot_utility-module.html#log2,Variable Priithon.plt.wxplt.log2=Priithon.plt.wxplt-module.html#log2,Variable Priithon.viewerRubberbandMode.log2=Priithon.viewerRubberbandMode-module.html#log2"><a title="Priithon.mandel.log2
Priithon.plt.interface.log2
Priithon.plt.log2
Priithon.plt.plot_objects.log2
Priithon.plt.plot_utility.log2
Priithon.plt.wxplt.log2
Priithon.viewerRubberbandMode.log2" class="py-name" href="#" onclick="return doclink('link-128', 'log2', 'link-128');">log2</a></tt><tt class="py-op">(</tt><tt id="link-129" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.range()=Priithon.plt.plot_objects.axis_object-class.html#range"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-129', 'range', 'link-129');">range</a></tt><tt class="py-op">)</tt> </tt>
<a name="L364"></a><tt class="py-lineno">364</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">l</tt> <tt class="py-op">==</tt> <tt id="link-130" class="py-name"><a title="Priithon.mandel.floor
Priithon.plt.floor
Priithon.plt.interface.floor
Priithon.plt.plot_objects.floor
Priithon.plt.plot_utility.floor
Priithon.plt.wxplt.floor" class="py-name" href="#" onclick="return doclink('link-130', 'floor', 'link-63');">floor</a></tt><tt class="py-op">(</tt><tt class="py-name">l</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">l</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0.0</tt><tt class="py-op">)</tt> </tt>
</div><a name="L365"></a><tt class="py-lineno">365</tt>  <tt class="py-line"> </tt>
<a name="is_number"></a><div id="is_number-def"><a name="L366"></a><tt class="py-lineno">366</tt> <a class="py-toggle" href="#" id="is_number-toggle" onclick="return toggle('is_number');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility-module.html#is_number">is_number</a><tt class="py-op">(</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="is_number-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="is_number-expanded"><a name="L367"></a><tt class="py-lineno">367</tt>  <tt class="py-line">    <tt class="py-docstring">" Returns 1 if value is an integer or double, 0 otherwise."</tt> </tt>
<a name="L368"></a><tt class="py-lineno">368</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L369"></a><tt class="py-lineno">369</tt>  <tt class="py-line">        <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
<a name="L370"></a><tt class="py-lineno">370</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-131" class="py-name" targets="Variable Priithon.wxPyPlot.True=Priithon.wxPyPlot-module.html#True"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-131', 'True', 'link-131');">True</a></tt> </tt>
<a name="L371"></a><tt class="py-lineno">371</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L372"></a><tt class="py-lineno">372</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-132" class="py-name" targets="Variable Priithon.wxPyPlot.False=Priithon.wxPyPlot-module.html#False"><a title="Priithon.wxPyPlot.False" class="py-name" href="#" onclick="return doclink('link-132', 'False', 'link-132');">False</a></tt> </tt>
</div><a name="L373"></a><tt class="py-lineno">373</tt>  <tt class="py-line"> </tt>
<a name="L374"></a><tt class="py-lineno">374</tt>  <tt class="py-line"><tt id="link-133" class="py-name" targets="Variable Priithon.plt.plot_utility.default_bounds=Priithon.plt.plot_utility-module.html#default_bounds"><a title="Priithon.plt.plot_utility.default_bounds" class="py-name" href="#" onclick="return doclink('link-133', 'default_bounds', 'link-133');">default_bounds</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt> </tt>
<a name="auto_ticks"></a><div id="auto_ticks-def"><a name="L375"></a><tt class="py-lineno">375</tt> <a class="py-toggle" href="#" id="auto_ticks-toggle" onclick="return toggle('auto_ticks');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility-module.html#auto_ticks">auto_ticks</a><tt class="py-op">(</tt><tt class="py-param">data_bounds</tt><tt class="py-op">,</tt> <tt class="py-param">bounds_info</tt> <tt class="py-op">=</tt> <tt id="link-134" class="py-name"><a title="Priithon.plt.plot_utility.default_bounds" class="py-name" href="#" onclick="return doclink('link-134', 'default_bounds', 'link-133');">default_bounds</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="auto_ticks-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="auto_ticks-expanded"><a name="L376"></a><tt class="py-lineno">376</tt>  <tt class="py-line">    <tt class="py-docstring">""" Find locations for axis tick marks.</tt> </tt>
<a name="L377"></a><tt class="py-lineno">377</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L378"></a><tt class="py-lineno">378</tt>  <tt class="py-line"><tt class="py-docstring">        Calculate the location for tick marks on an axis. data_bounds is a </tt> </tt>
<a name="L379"></a><tt class="py-lineno">379</tt>  <tt class="py-line"><tt class="py-docstring">        sequence of 2 numbers specifying the maximum and minimum values of </tt> </tt>
<a name="L380"></a><tt class="py-lineno">380</tt>  <tt class="py-line"><tt class="py-docstring">        the data along this axis. bounds_info is a sequence of 3 values that</tt> </tt>
<a name="L381"></a><tt class="py-lineno">381</tt>  <tt class="py-line"><tt class="py-docstring">        specify how the axis end points and tick interval are calculated. An</tt> </tt>
<a name="L382"></a><tt class="py-lineno">382</tt>  <tt class="py-line"><tt class="py-docstring">        array of tick mark locations is returned from the function.  The</tt> </tt>
<a name="L383"></a><tt class="py-lineno">383</tt>  <tt class="py-line"><tt class="py-docstring">        first and last tick entries are the axis end points.</tt> </tt>
<a name="L384"></a><tt class="py-lineno">384</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L385"></a><tt class="py-lineno">385</tt>  <tt class="py-line"><tt class="py-docstring">        data_bounds -- (lower,upper).  The maximum and minimum values of the</tt> </tt>
<a name="L386"></a><tt class="py-lineno">386</tt>  <tt class="py-line"><tt class="py-docstring">                       data long this axis.  If any of the settings in </tt> </tt>
<a name="L387"></a><tt class="py-lineno">387</tt>  <tt class="py-line"><tt class="py-docstring">                       bounds_info are 'auto' or 'fit', the axis properties</tt> </tt>
<a name="L388"></a><tt class="py-lineno">388</tt>  <tt class="py-line"><tt class="py-docstring">                       are calculated automatically from these settings.</tt> </tt>
<a name="L389"></a><tt class="py-lineno">389</tt>  <tt class="py-line"><tt class="py-docstring">        bounds_info -- (lower,upper,interval).  Each entry can either be</tt> </tt>
<a name="L390"></a><tt class="py-lineno">390</tt>  <tt class="py-line"><tt class="py-docstring">                       a numerical value or a string.  If a number,the axis </tt> </tt>
<a name="L391"></a><tt class="py-lineno">391</tt>  <tt class="py-line"><tt class="py-docstring">                       property is set to that value.  If the entry</tt> </tt>
<a name="L392"></a><tt class="py-lineno">392</tt>  <tt class="py-line"><tt class="py-docstring">                       is 'auto', the property is calculated automatically.</tt> </tt>
<a name="L393"></a><tt class="py-lineno">393</tt>  <tt class="py-line"><tt class="py-docstring">                       lower and upper can also be 'fit' in which case</tt> </tt>
<a name="L394"></a><tt class="py-lineno">394</tt>  <tt class="py-line"><tt class="py-docstring">                       the axis end points are set equal to the values</tt> </tt>
<a name="L395"></a><tt class="py-lineno">395</tt>  <tt class="py-line"><tt class="py-docstring">                       in data_bounds.</tt> </tt>
<a name="L396"></a><tt class="py-lineno">396</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L397"></a><tt class="py-lineno">397</tt>  <tt class="py-line">    <tt class="py-comment"># pretty ugly code...</tt> </tt>
<a name="L398"></a><tt class="py-lineno">398</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># man, this needs some testing.</tt> </tt>
<a name="L399"></a><tt class="py-lineno">399</tt>  <tt class="py-line"><tt class="py-comment"></tt>     </tt>
<a name="L400"></a><tt class="py-lineno">400</tt>  <tt class="py-line">    <tt class="py-comment"># hmmm, all the nan stuff should have been handled before this </tt> </tt>
<a name="L401"></a><tt class="py-lineno">401</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># point...</tt> </tt>
<a name="L402"></a><tt class="py-lineno">402</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#from misc import nan_to_num, isinf</tt> </tt>
<a name="L403"></a><tt class="py-lineno">403</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#if is_number(bounds_info[0]): lower = nan_to_num(bounds_info[0])</tt> </tt>
<a name="L404"></a><tt class="py-lineno">404</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#else:                         lower = nan_to_num(data_bounds[0])</tt> </tt>
<a name="L405"></a><tt class="py-lineno">405</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#if is_number(bounds_info[1]): upper = nan_to_num(bounds_info[1])</tt> </tt>
<a name="L406"></a><tt class="py-lineno">406</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#else:                         upper = nan_to_num(data_bounds[1])</tt> </tt>
<a name="L407"></a><tt class="py-lineno">407</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#if is_number(bounds_info[2]): interval = nan_to_num(bounds_info[2])</tt> </tt>
<a name="L408"></a><tt class="py-lineno">408</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#else:                         interval = bounds_info[2]</tt> </tt>
<a name="L409"></a><tt class="py-lineno">409</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L410"></a><tt class="py-lineno">410</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-135" class="py-name" targets="Function Priithon.plt.plot_utility.is_number()=Priithon.plt.plot_utility-module.html#is_number"><a title="Priithon.plt.plot_utility.is_number" class="py-name" href="#" onclick="return doclink('link-135', 'is_number', 'link-135');">is_number</a></tt><tt class="py-op">(</tt><tt class="py-name">bounds_info</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">lower</tt> <tt class="py-op">=</tt> <tt class="py-name">bounds_info</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L411"></a><tt class="py-lineno">411</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt>                         <tt class="py-name">lower</tt> <tt class="py-op">=</tt> <tt class="py-name">data_bounds</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L412"></a><tt class="py-lineno">412</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-136" class="py-name"><a title="Priithon.plt.plot_utility.is_number" class="py-name" href="#" onclick="return doclink('link-136', 'is_number', 'link-135');">is_number</a></tt><tt class="py-op">(</tt><tt class="py-name">bounds_info</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">upper</tt> <tt class="py-op">=</tt> <tt class="py-name">bounds_info</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L413"></a><tt class="py-lineno">413</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt>                         <tt class="py-name">upper</tt> <tt class="py-op">=</tt> <tt class="py-name">data_bounds</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L414"></a><tt class="py-lineno">414</tt>  <tt class="py-line">    <tt class="py-name">interval</tt> <tt class="py-op">=</tt> <tt class="py-name">bounds_info</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L415"></a><tt class="py-lineno">415</tt>  <tt class="py-line"> </tt>
<a name="L416"></a><tt class="py-lineno">416</tt>  <tt class="py-line">    <tt class="py-comment">#print 'raw input:', lower,upper,interval</tt> </tt>
<a name="L417"></a><tt class="py-lineno">417</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#print 'raw interval:', interval       </tt> </tt>
<a name="L418"></a><tt class="py-lineno">418</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">if</tt> <tt class="py-name">interval</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'linear'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L419"></a><tt class="py-lineno">419</tt>  <tt class="py-line">        <tt class="py-name">rng</tt> <tt class="py-op">=</tt> <tt class="py-name">abs</tt><tt class="py-op">(</tt><tt class="py-name">upper</tt> <tt class="py-op">-</tt> <tt class="py-name">lower</tt><tt class="py-op">)</tt> </tt>
<a name="L420"></a><tt class="py-lineno">420</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">rng</tt> <tt class="py-op">==</tt> <tt class="py-number">0.</tt><tt class="py-op">:</tt> </tt>
<a name="L421"></a><tt class="py-lineno">421</tt>  <tt class="py-line">            <tt class="py-comment"># anything more intelligent to do here?</tt> </tt>
<a name="L422"></a><tt class="py-lineno">422</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">interval</tt> <tt class="py-op">=</tt> <tt class="py-number">.5</tt> </tt>
<a name="L423"></a><tt class="py-lineno">423</tt>  <tt class="py-line">            <tt class="py-name">lower</tt><tt class="py-op">,</tt><tt class="py-name">upper</tt> <tt class="py-op">=</tt> <tt class="py-name">data_bounds</tt> <tt class="py-op">+</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-op">-</tt><tt class="py-number">.5</tt><tt class="py-op">,</tt><tt class="py-number">.5</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L424"></a><tt class="py-lineno">424</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-137" class="py-name" targets="Function Priithon.plt.plot_utility.is_base2()=Priithon.plt.plot_utility-module.html#is_base2"><a title="Priithon.plt.plot_utility.is_base2" class="py-name" href="#" onclick="return doclink('link-137', 'is_base2', 'link-137');">is_base2</a></tt><tt class="py-op">(</tt><tt class="py-name">rng</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt id="link-138" class="py-name"><a title="Priithon.plt.plot_utility.is_base2" class="py-name" href="#" onclick="return doclink('link-138', 'is_base2', 'link-137');">is_base2</a></tt><tt class="py-op">(</tt><tt class="py-name">upper</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">rng</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">4</tt><tt class="py-op">:</tt> </tt>
<a name="L425"></a><tt class="py-lineno">425</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">rng</tt> <tt class="py-op">==</tt> <tt class="py-number">2</tt><tt class="py-op">:</tt>  </tt>
<a name="L426"></a><tt class="py-lineno">426</tt>  <tt class="py-line">                <tt class="py-name">interval</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L427"></a><tt class="py-lineno">427</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">rng</tt> <tt class="py-op">==</tt> <tt class="py-number">4</tt><tt class="py-op">:</tt>  </tt>
<a name="L428"></a><tt class="py-lineno">428</tt>  <tt class="py-line">                <tt class="py-name">interval</tt> <tt class="py-op">=</tt> <tt class="py-number">4</tt> </tt>
<a name="L429"></a><tt class="py-lineno">429</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt>  </tt>
<a name="L430"></a><tt class="py-lineno">430</tt>  <tt class="py-line">                <tt class="py-name">interval</tt> <tt class="py-op">=</tt> <tt class="py-name">rng</tt> <tt class="py-op">/</tt> <tt class="py-number">4</tt> <tt class="py-comment"># maybe we want it 8</tt> </tt>
<a name="L431"></a><tt class="py-lineno">431</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L432"></a><tt class="py-lineno">432</tt>  <tt class="py-line">            <tt class="py-name">interval</tt> <tt class="py-op">=</tt> <tt id="link-139" class="py-name" targets="Function Priithon.plt.plot_utility.auto_interval()=Priithon.plt.plot_utility-module.html#auto_interval"><a title="Priithon.plt.plot_utility.auto_interval" class="py-name" href="#" onclick="return doclink('link-139', 'auto_interval', 'link-139');">auto_interval</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">lower</tt><tt class="py-op">,</tt><tt class="py-name">upper</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L433"></a><tt class="py-lineno">433</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">interval</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-number">0.0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">:</tt>  </tt>
<a name="L434"></a><tt class="py-lineno">434</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt>    </tt>
<a name="L435"></a><tt class="py-lineno">435</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L436"></a><tt class="py-lineno">436</tt>  <tt class="py-line">        <tt class="py-comment">#print 'interval: ', interval</tt> </tt>
<a name="L437"></a><tt class="py-lineno">437</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">raise</tt> <tt class="py-name">ValueError</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">interval</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">" is an unknown value for interval: "</tt> \ </tt>
<a name="L438"></a><tt class="py-lineno">438</tt>  <tt class="py-line">                          <tt class="py-string">"  expects 'auto' or 'linear', or a number"</tt> </tt>
<a name="L439"></a><tt class="py-lineno">439</tt>  <tt class="py-line">     </tt>
<a name="L440"></a><tt class="py-lineno">440</tt>  <tt class="py-line">    <tt class="py-comment"># If the lower or upper bound are set to 'auto', </tt> </tt>
<a name="L441"></a><tt class="py-lineno">441</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># calculate them based on the newly chosen interval.</tt> </tt>
<a name="L442"></a><tt class="py-lineno">442</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#print 'interval:', interval</tt> </tt>
<a name="L443"></a><tt class="py-lineno">443</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">auto_lower</tt><tt class="py-op">,</tt><tt class="py-name">auto_upper</tt> <tt class="py-op">=</tt> <tt id="link-140" class="py-name" targets="Function Priithon.plt.plot_utility.auto_bounds()=Priithon.plt.plot_utility-module.html#auto_bounds"><a title="Priithon.plt.plot_utility.auto_bounds" class="py-name" href="#" onclick="return doclink('link-140', 'auto_bounds', 'link-140');">auto_bounds</a></tt><tt class="py-op">(</tt><tt class="py-name">data_bounds</tt><tt class="py-op">,</tt><tt class="py-name">interval</tt><tt class="py-op">)</tt> </tt>
<a name="L444"></a><tt class="py-lineno">444</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">bounds_info</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'auto'</tt><tt class="py-op">:</tt> </tt>
<a name="L445"></a><tt class="py-lineno">445</tt>  <tt class="py-line">        <tt class="py-name">lower</tt> <tt class="py-op">=</tt> <tt class="py-name">auto_lower</tt> </tt>
<a name="L446"></a><tt class="py-lineno">446</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">bounds_info</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'auto'</tt><tt class="py-op">:</tt> </tt>
<a name="L447"></a><tt class="py-lineno">447</tt>  <tt class="py-line">        <tt class="py-name">upper</tt> <tt class="py-op">=</tt> <tt class="py-name">auto_upper</tt>         </tt>
<a name="L448"></a><tt class="py-lineno">448</tt>  <tt class="py-line">     </tt>
<a name="L449"></a><tt class="py-lineno">449</tt>  <tt class="py-line">    <tt class="py-comment"># again, we shouldn't need this</tt> </tt>
<a name="L450"></a><tt class="py-lineno">450</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># cluge to handle inf values    </tt> </tt>
<a name="L451"></a><tt class="py-lineno">451</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#if isinf(lower):</tt> </tt>
<a name="L452"></a><tt class="py-lineno">452</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#    lower = nan_to_num(lower) / 10</tt> </tt>
<a name="L453"></a><tt class="py-lineno">453</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#if isinf(upper):</tt> </tt>
<a name="L454"></a><tt class="py-lineno">454</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#    upper = nan_to_num(upper) / 10    </tt> </tt>
<a name="L455"></a><tt class="py-lineno">455</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#if isinf(interval):</tt> </tt>
<a name="L456"></a><tt class="py-lineno">456</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#    interval = nan_to_num(interval) / 10    </tt> </tt>
<a name="L457"></a><tt class="py-lineno">457</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># if the lower and upper bound span 0, make sure ticks</tt> </tt>
<a name="L458"></a><tt class="py-lineno">458</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># will hit exactly on zero.</tt> </tt>
<a name="L459"></a><tt class="py-lineno">459</tt>  <tt class="py-line"><tt class="py-comment"></tt>     </tt>
<a name="L460"></a><tt class="py-lineno">460</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">lower</tt> <tt class="py-op">&lt;</tt> <tt class="py-number">0</tt> <tt class="py-keyword">and</tt> <tt class="py-name">upper</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L461"></a><tt class="py-lineno">461</tt>  <tt class="py-line">        <tt class="py-comment">#print 'arrrgh',0,upper+interval,interval</tt> </tt>
<a name="L462"></a><tt class="py-lineno">462</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">hi_ticks</tt> <tt class="py-op">=</tt> <tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-name">upper</tt><tt class="py-op">+</tt><tt class="py-name">interval</tt><tt class="py-op">,</tt><tt class="py-name">interval</tt><tt class="py-op">)</tt> </tt>
<a name="L463"></a><tt class="py-lineno">463</tt>  <tt class="py-line">        <tt class="py-name">low_ticks</tt> <tt class="py-op">=</tt> <tt class="py-op">-</tt> <tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-name">interval</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-name">lower</tt><tt class="py-op">+</tt><tt class="py-name">interval</tt><tt class="py-op">,</tt><tt class="py-name">interval</tt><tt class="py-op">)</tt>         </tt>
<a name="L464"></a><tt class="py-lineno">464</tt>  <tt class="py-line">        <tt class="py-name">ticks</tt> <tt class="py-op">=</tt> <tt class="py-name">concatenate</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">low_ticks</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">hi_ticks</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L465"></a><tt class="py-lineno">465</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L466"></a><tt class="py-lineno">466</tt>  <tt class="py-line">        <tt class="py-comment"># othersize the ticks start and end on the lower and </tt> </tt>
<a name="L467"></a><tt class="py-lineno">467</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># upper values.</tt> </tt>
<a name="L468"></a><tt class="py-lineno">468</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">ticks</tt> <tt class="py-op">=</tt> <tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-name">lower</tt><tt class="py-op">,</tt><tt class="py-name">upper</tt><tt class="py-op">+</tt><tt class="py-name">interval</tt><tt class="py-op">,</tt><tt class="py-name">interval</tt><tt class="py-op">)</tt> </tt>
<a name="L469"></a><tt class="py-lineno">469</tt>  <tt class="py-line">    <tt class="py-comment">#cluge</tt> </tt>
<a name="L470"></a><tt class="py-lineno">470</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">ticks</tt><tt class="py-op">)</tt> <tt class="py-op">&lt;</tt> <tt class="py-number">2</tt><tt class="py-op">:</tt> </tt>
<a name="L471"></a><tt class="py-lineno">471</tt>  <tt class="py-line">        <tt class="py-name">ticks</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">lower</tt><tt class="py-op">-</tt><tt class="py-name">lower</tt><tt class="py-op">*</tt><tt class="py-number">1e-7</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">lower</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L472"></a><tt class="py-lineno">472</tt>  <tt class="py-line">    <tt class="py-comment">#print 'ticks:',ticks</tt> </tt>
<a name="L473"></a><tt class="py-lineno">473</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">if</tt> <tt class="py-name">bounds_info</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'fit'</tt><tt class="py-op">:</tt> <tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">lower</tt> </tt>
<a name="L474"></a><tt class="py-lineno">474</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">bounds_info</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'fit'</tt><tt class="py-op">:</tt> <tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">upper</tt> </tt>
<a name="L475"></a><tt class="py-lineno">475</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">ticks</tt> </tt>
</div><a name="L476"></a><tt class="py-lineno">476</tt>  <tt class="py-line"> </tt>
<a name="L477"></a><tt class="py-lineno">477</tt>  <tt class="py-line"> </tt>
<a name="format_tick_labels"></a><div id="format_tick_labels-def"><a name="L478"></a><tt class="py-lineno">478</tt> <a class="py-toggle" href="#" id="format_tick_labels-toggle" onclick="return toggle('format_tick_labels');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility-module.html#format_tick_labels">format_tick_labels</a><tt class="py-op">(</tt><tt class="py-param">ticks</tt><tt class="py-op">,</tt> <tt class="py-param">cnvFcn</tt><tt class="py-op">=</tt><tt class="py-name">str</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="format_tick_labels-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="format_tick_labels-expanded"><a name="L479"></a><tt class="py-lineno">479</tt>  <tt class="py-line">    <tt class="py-docstring">""" Convert tick values to formatted strings.</tt> </tt>
<a name="L480"></a><tt class="py-lineno">480</tt>  <tt class="py-line"><tt class="py-docstring">        Definitely needs some work</tt> </tt>
<a name="L481"></a><tt class="py-lineno">481</tt>  <tt class="py-line"><tt class="py-docstring">        #seb 20100302 `cnvFcn` introduced (instead of hard wired `str`)</tt> </tt>
<a name="L482"></a><tt class="py-lineno">482</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L483"></a><tt class="py-lineno">483</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-name">cnvFcn</tt><tt class="py-op">,</tt><tt class="py-name">ticks</tt><tt class="py-op">)</tt>         </tt>
</div><a name="L484"></a><tt class="py-lineno">484</tt>  <tt class="py-line">    <tt class="py-comment">#print ticks</tt> </tt>
<a name="L485"></a><tt class="py-lineno">485</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#if equal(ticks,ticks.astype('l')):</tt> </tt>
<a name="L486"></a><tt class="py-lineno">486</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#    return map(str,ticks.astype('l'))</tt> </tt>
<a name="L487"></a><tt class="py-lineno">487</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#else:</tt> </tt>
<a name="L488"></a><tt class="py-lineno">488</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#    return map(str,ticks)        </tt> </tt>
<a name="L489"></a><tt class="py-lineno">489</tt>  <tt class="py-line"><tt class="py-comment"></tt>     </tt>
<a name="L490"></a><tt class="py-lineno">490</tt>  <tt class="py-line">         </tt>
<a name="L491"></a><tt class="py-lineno">491</tt>  <tt class="py-line"> </tt>
<a name="calc_bound"></a><div id="calc_bound-def"><a name="L492"></a><tt class="py-lineno">492</tt> <a class="py-toggle" href="#" id="calc_bound-toggle" onclick="return toggle('calc_bound');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility-module.html#calc_bound">calc_bound</a><tt class="py-op">(</tt><tt class="py-param">end_point</tt><tt class="py-op">,</tt><tt class="py-param">interval</tt><tt class="py-op">,</tt><tt class="py-param">end</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="calc_bound-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="calc_bound-expanded"><a name="L493"></a><tt class="py-lineno">493</tt>  <tt class="py-line">    <tt class="py-docstring">""" Find an axis end point that includes the the value end_point.  If the</tt> </tt>
<a name="L494"></a><tt class="py-lineno">494</tt>  <tt class="py-line"><tt class="py-docstring">        tick mark interval results in a tick mark hitting directly on the </tt> </tt>
<a name="L495"></a><tt class="py-lineno">495</tt>  <tt class="py-line"><tt class="py-docstring">        end_point, end_point is returned.  Otherwise, the location of the tick</tt> </tt>
<a name="L496"></a><tt class="py-lineno">496</tt>  <tt class="py-line"><tt class="py-docstring">        mark just past the end_point is returned. end is 'lower' or 'upper' to</tt> </tt>
<a name="L497"></a><tt class="py-lineno">497</tt>  <tt class="py-line"><tt class="py-docstring">        specify whether end_point is at the lower or upper end of the axis.</tt> </tt>
<a name="L498"></a><tt class="py-lineno">498</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L499"></a><tt class="py-lineno">499</tt>  <tt class="py-line">    <tt class="py-name">quotient</tt><tt class="py-op">,</tt><tt id="link-141" class="py-name" targets="Variable Priithon.mandel.remainder=Priithon.mandel-module.html#remainder,Variable Priithon.plt.interface.remainder=Priithon.plt.interface-module.html#remainder,Variable Priithon.plt.plot_objects.remainder=Priithon.plt.plot_objects-module.html#remainder,Variable Priithon.plt.plot_utility.remainder=Priithon.plt.plot_utility-module.html#remainder,Variable Priithon.plt.remainder=Priithon.plt-module.html#remainder,Variable Priithon.plt.wxplt.remainder=Priithon.plt.wxplt-module.html#remainder"><a title="Priithon.mandel.remainder
Priithon.plt.interface.remainder
Priithon.plt.plot_objects.remainder
Priithon.plt.plot_utility.remainder
Priithon.plt.remainder
Priithon.plt.wxplt.remainder" class="py-name" href="#" onclick="return doclink('link-141', 'remainder', 'link-141');">remainder</a></tt> <tt class="py-op">=</tt> <tt class="py-name">divmod</tt><tt class="py-op">(</tt><tt class="py-name">end_point</tt><tt class="py-op">,</tt><tt class="py-name">interval</tt><tt class="py-op">)</tt>     </tt>
<a name="L500"></a><tt class="py-lineno">500</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt id="link-142" class="py-name"><a title="Priithon.mandel.remainder
Priithon.plt.interface.remainder
Priithon.plt.plot_objects.remainder
Priithon.plt.plot_utility.remainder
Priithon.plt.remainder
Priithon.plt.wxplt.remainder" class="py-name" href="#" onclick="return doclink('link-142', 'remainder', 'link-141');">remainder</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">end_point</tt> </tt>
<a name="L501"></a><tt class="py-lineno">501</tt>  <tt class="py-line"> </tt>
<a name="L502"></a><tt class="py-lineno">502</tt>  <tt class="py-line">    <tt class="py-name">c1</tt> <tt class="py-op">=</tt> <tt class="py-name">axis_bound</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-name">quotient</tt> <tt class="py-op">+</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> <tt class="py-op">*</tt> <tt class="py-name">interval</tt> </tt>
<a name="L503"></a><tt class="py-lineno">503</tt>  <tt class="py-line">    <tt class="py-name">c2</tt> <tt class="py-op">=</tt> <tt class="py-name">axis_bound</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-name">quotient</tt><tt class="py-op">)</tt> <tt class="py-op">*</tt> <tt class="py-name">interval</tt> </tt>
<a name="L504"></a><tt class="py-lineno">504</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">end</tt> <tt class="py-op">==</tt> <tt class="py-string">'upper'</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt id="link-143" class="py-name" targets="Function Priithon.useful.max()=Priithon.useful-module.html#max"><a title="Priithon.useful.max" class="py-name" href="#" onclick="return doclink('link-143', 'max', 'link-143');">max</a></tt><tt class="py-op">(</tt><tt class="py-name">c1</tt><tt class="py-op">,</tt><tt class="py-name">c2</tt><tt class="py-op">)</tt> </tt>
<a name="L505"></a><tt class="py-lineno">505</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">end</tt> <tt class="py-op">==</tt> <tt class="py-string">'lower'</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt id="link-144" class="py-name"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-144', 'min', 'link-73');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">c1</tt><tt class="py-op">,</tt><tt class="py-name">c2</tt><tt class="py-op">)</tt>                 </tt>
</div><a name="L506"></a><tt class="py-lineno">506</tt>  <tt class="py-line"> </tt>
<a name="L507"></a><tt class="py-lineno">507</tt>  <tt class="py-line">     </tt>
<a name="auto_bounds"></a><div id="auto_bounds-def"><a name="L508"></a><tt class="py-lineno">508</tt> <a class="py-toggle" href="#" id="auto_bounds-toggle" onclick="return toggle('auto_bounds');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility-module.html#auto_bounds">auto_bounds</a><tt class="py-op">(</tt><tt class="py-param">data_bounds</tt><tt class="py-op">,</tt><tt class="py-param">interval</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="auto_bounds-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="auto_bounds-expanded"><a name="L509"></a><tt class="py-lineno">509</tt>  <tt class="py-line">    <tt class="py-docstring">""" Calculate an appropriate upper and lower bounds for the axis from</tt> </tt>
<a name="L510"></a><tt class="py-lineno">510</tt>  <tt class="py-line"><tt class="py-docstring">        the the data_bounds (lower, upper) and the given axis interval.  The</tt> </tt>
<a name="L511"></a><tt class="py-lineno">511</tt>  <tt class="py-line"><tt class="py-docstring">        boundaries will either hit exactly on the lower and upper values</tt> </tt>
<a name="L512"></a><tt class="py-lineno">512</tt>  <tt class="py-line"><tt class="py-docstring">        or on the tick mark just beyond the lower and upper values.</tt> </tt>
<a name="L513"></a><tt class="py-lineno">513</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt>     </tt>
<a name="L514"></a><tt class="py-lineno">514</tt>  <tt class="py-line">    <tt class="py-name">data_lower</tt><tt class="py-op">,</tt><tt class="py-name">data_upper</tt> <tt class="py-op">=</tt> <tt class="py-name">data_bounds</tt> </tt>
<a name="L515"></a><tt class="py-lineno">515</tt>  <tt class="py-line">    <tt class="py-name">lower</tt> <tt class="py-op">=</tt> <tt id="link-145" class="py-name" targets="Function Priithon.plt.plot_utility.calc_bound()=Priithon.plt.plot_utility-module.html#calc_bound"><a title="Priithon.plt.plot_utility.calc_bound" class="py-name" href="#" onclick="return doclink('link-145', 'calc_bound', 'link-145');">calc_bound</a></tt><tt class="py-op">(</tt><tt class="py-name">data_lower</tt><tt class="py-op">,</tt><tt class="py-name">interval</tt><tt class="py-op">,</tt><tt class="py-string">'lower'</tt><tt class="py-op">)</tt> </tt>
<a name="L516"></a><tt class="py-lineno">516</tt>  <tt class="py-line">    <tt class="py-name">upper</tt> <tt class="py-op">=</tt> <tt id="link-146" class="py-name"><a title="Priithon.plt.plot_utility.calc_bound" class="py-name" href="#" onclick="return doclink('link-146', 'calc_bound', 'link-145');">calc_bound</a></tt><tt class="py-op">(</tt><tt class="py-name">data_upper</tt><tt class="py-op">,</tt><tt class="py-name">interval</tt><tt class="py-op">,</tt><tt class="py-string">'upper'</tt><tt class="py-op">)</tt> </tt>
<a name="L517"></a><tt class="py-lineno">517</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">lower</tt><tt class="py-op">,</tt><tt class="py-name">upper</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L518"></a><tt class="py-lineno">518</tt>  <tt class="py-line"> </tt>
<a name="auto_interval"></a><div id="auto_interval-def"><a name="L519"></a><tt class="py-lineno">519</tt> <a class="py-toggle" href="#" id="auto_interval-toggle" onclick="return toggle('auto_interval');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.plot_utility-module.html#auto_interval">auto_interval</a><tt class="py-op">(</tt><tt class="py-param">data_bounds</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="auto_interval-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="auto_interval-expanded"><a name="L520"></a><tt class="py-lineno">520</tt>  <tt class="py-line">    <tt class="py-docstring">""" Calculate the tick intervals for a graph axis.</tt> </tt>
<a name="L521"></a><tt class="py-lineno">521</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L522"></a><tt class="py-lineno">522</tt>  <tt class="py-line"><tt class="py-docstring">        Description:        </tt> </tt>
<a name="L523"></a><tt class="py-lineno">523</tt>  <tt class="py-line"><tt class="py-docstring">        The boundaries for the data to be plotted on the axis are:</tt> </tt>
<a name="L524"></a><tt class="py-lineno">524</tt>  <tt class="py-line"><tt class="py-docstring">            data_bounds = (lower,upper)</tt> </tt>
<a name="L525"></a><tt class="py-lineno">525</tt>  <tt class="py-line"><tt class="py-docstring">                </tt> </tt>
<a name="L526"></a><tt class="py-lineno">526</tt>  <tt class="py-line"><tt class="py-docstring">        A choice is made between 3 to 9 ticks marks (including end points)</tt> </tt>
<a name="L527"></a><tt class="py-lineno">527</tt>  <tt class="py-line"><tt class="py-docstring">        and tick intervals at 1, 2, 2.5, 5, 10, 20, ...</tt> </tt>
<a name="L528"></a><tt class="py-lineno">528</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L529"></a><tt class="py-lineno">529</tt>  <tt class="py-line"><tt class="py-docstring">        Returns:</tt> </tt>
<a name="L530"></a><tt class="py-lineno">530</tt>  <tt class="py-line"><tt class="py-docstring">        interval -- float. tick mark interval for axis            </tt> </tt>
<a name="L531"></a><tt class="py-lineno">531</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt>     </tt>
<a name="L532"></a><tt class="py-lineno">532</tt>  <tt class="py-line">    <tt id="link-147" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-147', 'range', 'link-129');">range</a></tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">data_bounds</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">data_bounds</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L533"></a><tt class="py-lineno">533</tt>  <tt class="py-line">    <tt class="py-comment"># We'll choose from between 2 and 8 tick marks</tt> </tt>
<a name="L534"></a><tt class="py-lineno">534</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># Favortism is given to more ticks:</tt> </tt>
<a name="L535"></a><tt class="py-lineno">535</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#   Note reverse order and see CLUGE below...</tt> </tt>
<a name="L536"></a><tt class="py-lineno">536</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">divisions</tt> <tt class="py-op">=</tt> <tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-number">8</tt><tt class="py-op">,</tt><tt class="py-number">2.</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1.</tt><tt class="py-op">)</tt> <tt class="py-comment">#(7,6,...,3)</tt> </tt>
<a name="L537"></a><tt class="py-lineno">537</tt>  <tt class="py-line">    <tt class="py-comment"># Calculate the intervals for the divisions</tt> </tt>
<a name="L538"></a><tt class="py-lineno">538</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">candidate_intervals</tt> <tt class="py-op">=</tt> <tt id="link-148" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-148', 'range', 'link-129');">range</a></tt> <tt class="py-op">/</tt> <tt class="py-name">divisions</tt> </tt>
<a name="L539"></a><tt class="py-lineno">539</tt>  <tt class="py-line">    <tt class="py-comment"># Get magnitudes and mantissas for each candidate</tt> </tt>
<a name="L540"></a><tt class="py-lineno">540</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">magnitudes</tt> <tt class="py-op">=</tt> <tt class="py-number">10.</tt><tt class="py-op">**</tt><tt id="link-149" class="py-name"><a title="Priithon.mandel.floor
Priithon.plt.floor
Priithon.plt.interface.floor
Priithon.plt.plot_objects.floor
Priithon.plt.plot_utility.floor
Priithon.plt.wxplt.floor" class="py-name" href="#" onclick="return doclink('link-149', 'floor', 'link-63');">floor</a></tt><tt class="py-op">(</tt><tt id="link-150" class="py-name" targets="Variable Priithon.mandel.log10=Priithon.mandel-module.html#log10,Variable Priithon.plt.interface.log10=Priithon.plt.interface-module.html#log10,Variable Priithon.plt.log10=Priithon.plt-module.html#log10,Variable Priithon.plt.plot_objects.log10=Priithon.plt.plot_objects-module.html#log10,Variable Priithon.plt.plot_utility.log10=Priithon.plt.plot_utility-module.html#log10,Variable Priithon.plt.wxplt.log10=Priithon.plt.wxplt-module.html#log10"><a title="Priithon.mandel.log10
Priithon.plt.interface.log10
Priithon.plt.log10
Priithon.plt.plot_objects.log10
Priithon.plt.plot_utility.log10
Priithon.plt.wxplt.log10" class="py-name" href="#" onclick="return doclink('link-150', 'log10', 'link-150');">log10</a></tt><tt class="py-op">(</tt><tt class="py-name">candidate_intervals</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L541"></a><tt class="py-lineno">541</tt>  <tt class="py-line">    <tt class="py-name">mantissas</tt> <tt class="py-op">=</tt> <tt class="py-name">candidate_intervals</tt> <tt class="py-op">/</tt> <tt class="py-name">magnitudes</tt> </tt>
<a name="L542"></a><tt class="py-lineno">542</tt>  <tt class="py-line">     </tt>
<a name="L543"></a><tt class="py-lineno">543</tt>  <tt class="py-line">    <tt class="py-comment"># list of "pleasing" intervals between ticks on graph</tt> </tt>
<a name="L544"></a><tt class="py-lineno">544</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># only first magnitude listed, higher mags others inferred</tt> </tt>
<a name="L545"></a><tt class="py-lineno">545</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">magic_intervals</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">1.</tt><tt class="py-op">,</tt><tt class="py-number">2.</tt><tt class="py-op">,</tt><tt class="py-number">2.5</tt><tt class="py-op">,</tt><tt class="py-number">5.</tt><tt class="py-op">,</tt><tt class="py-number">10.</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L546"></a><tt class="py-lineno">546</tt>  <tt class="py-line">    <tt class="py-comment"># calculate the absolute differences between the candidates</tt> </tt>
<a name="L547"></a><tt class="py-lineno">547</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># (with mag removed) and the magic intervals</tt> </tt>
<a name="L548"></a><tt class="py-lineno">548</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">differences</tt> <tt class="py-op">=</tt> <tt class="py-name">abs</tt><tt class="py-op">(</tt><tt class="py-name">magic_intervals</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">,</tt><tt id="link-151" class="py-name" targets="Variable Priithon.mandel.newaxis=Priithon.mandel-module.html#newaxis,Variable Priithon.plt.interface.newaxis=Priithon.plt.interface-module.html#newaxis,Variable Priithon.plt.newaxis=Priithon.plt-module.html#newaxis,Variable Priithon.plt.plot_objects.newaxis=Priithon.plt.plot_objects-module.html#newaxis,Variable Priithon.plt.plot_utility.newaxis=Priithon.plt.plot_utility-module.html#newaxis,Variable Priithon.plt.wxplt.newaxis=Priithon.plt.wxplt-module.html#newaxis"><a title="Priithon.mandel.newaxis
Priithon.plt.interface.newaxis
Priithon.plt.newaxis
Priithon.plt.plot_objects.newaxis
Priithon.plt.plot_utility.newaxis
Priithon.plt.wxplt.newaxis" class="py-name" href="#" onclick="return doclink('link-151', 'newaxis', 'link-151');">newaxis</a></tt><tt class="py-op">]</tt> <tt class="py-op">-</tt> <tt class="py-name">mantissas</tt><tt class="py-op">)</tt>  </tt>
<a name="L549"></a><tt class="py-lineno">549</tt>  <tt class="py-line"> </tt>
<a name="L550"></a><tt class="py-lineno">550</tt>  <tt class="py-line">    <tt class="py-comment"># Find the division and magic interval combo</tt> </tt>
<a name="L551"></a><tt class="py-lineno">551</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># that produce the smallest differences.</tt> </tt>
<a name="L552"></a><tt class="py-lineno">552</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># also:</tt> </tt>
<a name="L553"></a><tt class="py-lineno">553</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># CLUGE: argsort doesn't preserve the order of</tt> </tt>
<a name="L554"></a><tt class="py-lineno">554</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># equal values, so we subtract a small , index</tt> </tt>
<a name="L555"></a><tt class="py-lineno">555</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># dependent amount from each difference to</tt> </tt>
<a name="L556"></a><tt class="py-lineno">556</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># force correct ordering</tt> </tt>
<a name="L557"></a><tt class="py-lineno">557</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">sh</tt> <tt class="py-op">=</tt> <tt id="link-152" class="py-name" targets="Variable Priithon.mockNDarray.mockNDarray.shape=Priithon.mockNDarray.mockNDarray-class.html#shape"><a title="Priithon.mockNDarray.mockNDarray.shape" class="py-name" href="#" onclick="return doclink('link-152', 'shape', 'link-152');">shape</a></tt><tt class="py-op">(</tt><tt class="py-name">differences</tt><tt class="py-op">)</tt> </tt>
<a name="L558"></a><tt class="py-lineno">558</tt>  <tt class="py-line">    <tt class="py-name">small</tt> <tt class="py-op">=</tt> <tt class="py-number">2.2e-16</tt> <tt class="py-op">*</tt><tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-name">sh</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">*</tt> <tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-name">sh</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">,</tt><tt id="link-153" class="py-name"><a title="Priithon.mandel.newaxis
Priithon.plt.interface.newaxis
Priithon.plt.newaxis
Priithon.plt.plot_objects.newaxis
Priithon.plt.plot_utility.newaxis
Priithon.plt.wxplt.newaxis" class="py-name" href="#" onclick="return doclink('link-153', 'newaxis', 'link-151');">newaxis</a></tt><tt class="py-op">]</tt> </tt>
<a name="L559"></a><tt class="py-lineno">559</tt>  <tt class="py-line">    <tt class="py-name">small</tt> <tt class="py-op">=</tt> <tt class="py-name">small</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-op">:</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-comment">#reverse order</tt> </tt>
<a name="L560"></a><tt class="py-lineno">560</tt>  <tt class="py-line">    <tt class="py-name">differences</tt> <tt class="py-op">=</tt> <tt class="py-name">differences</tt> <tt class="py-op">-</tt> <tt class="py-name">small</tt> </tt>
<a name="L561"></a><tt class="py-lineno">561</tt>  <tt class="py-line">    <tt class="py-comment"># ? Numeric should allow keyword "axis" ? comment out for now</tt> </tt>
<a name="L562"></a><tt class="py-lineno">562</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#best_mantissa = minimum.reduce(differences,axis=0)    </tt> </tt>
<a name="L563"></a><tt class="py-lineno">563</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#best_magic = minimum.reduce(differences,axis=-1)</tt> </tt>
<a name="L564"></a><tt class="py-lineno">564</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">best_mantissa</tt> <tt class="py-op">=</tt> <tt id="link-154" class="py-name" targets="Variable Priithon.mandel.minimum=Priithon.mandel-module.html#minimum,Variable Priithon.plt.interface.minimum=Priithon.plt.interface-module.html#minimum,Variable Priithon.plt.minimum=Priithon.plt-module.html#minimum,Variable Priithon.plt.plot_objects.minimum=Priithon.plt.plot_objects-module.html#minimum,Variable Priithon.plt.plot_utility.minimum=Priithon.plt.plot_utility-module.html#minimum,Variable Priithon.plt.wxplt.minimum=Priithon.plt.wxplt-module.html#minimum"><a title="Priithon.mandel.minimum
Priithon.plt.interface.minimum
Priithon.plt.minimum
Priithon.plt.plot_objects.minimum
Priithon.plt.plot_utility.minimum
Priithon.plt.wxplt.minimum" class="py-name" href="#" onclick="return doclink('link-154', 'minimum', 'link-154');">minimum</a></tt><tt class="py-op">.</tt><tt class="py-name">reduce</tt><tt class="py-op">(</tt><tt class="py-name">differences</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt>     </tt>
<a name="L565"></a><tt class="py-lineno">565</tt>  <tt class="py-line">    <tt class="py-name">best_magic</tt> <tt class="py-op">=</tt> <tt id="link-155" class="py-name"><a title="Priithon.mandel.minimum
Priithon.plt.interface.minimum
Priithon.plt.minimum
Priithon.plt.plot_objects.minimum
Priithon.plt.plot_utility.minimum
Priithon.plt.wxplt.minimum" class="py-name" href="#" onclick="return doclink('link-155', 'minimum', 'link-154');">minimum</a></tt><tt class="py-op">.</tt><tt class="py-name">reduce</tt><tt class="py-op">(</tt><tt class="py-name">differences</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L566"></a><tt class="py-lineno">566</tt>  <tt class="py-line">    <tt class="py-name">magic_index</tt> <tt class="py-op">=</tt> <tt class="py-name">argsort</tt><tt class="py-op">(</tt><tt class="py-name">best_magic</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L567"></a><tt class="py-lineno">567</tt>  <tt class="py-line">    <tt class="py-name">mantissa_index</tt> <tt class="py-op">=</tt> <tt class="py-name">argsort</tt><tt class="py-op">(</tt><tt class="py-name">best_mantissa</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L568"></a><tt class="py-lineno">568</tt>  <tt class="py-line">    <tt class="py-comment"># The best interval is the magic_interval</tt> </tt>
<a name="L569"></a><tt class="py-lineno">569</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># multiplied by the magnitude of the best mantissa</tt> </tt>
<a name="L570"></a><tt class="py-lineno">570</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">interval</tt> <tt class="py-op">=</tt> <tt class="py-name">magic_intervals</tt><tt class="py-op">[</tt><tt class="py-name">magic_index</tt><tt class="py-op">]</tt> </tt>
<a name="L571"></a><tt class="py-lineno">571</tt>  <tt class="py-line">    <tt class="py-name">magnitude</tt> <tt class="py-op">=</tt> <tt class="py-name">magnitudes</tt><tt class="py-op">[</tt><tt class="py-name">mantissa_index</tt><tt class="py-op">]</tt> </tt>
<a name="L572"></a><tt class="py-lineno">572</tt>  <tt class="py-line">    <tt class="py-comment">#print differences</tt> </tt>
<a name="L573"></a><tt class="py-lineno">573</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#print 'results:', magic_index, mantissa_index,interval, magnitude</tt> </tt>
<a name="L574"></a><tt class="py-lineno">574</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#print 'returned:',interval*magnitude</tt> </tt>
<a name="L575"></a><tt class="py-lineno">575</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-name">interval</tt><tt class="py-op">*</tt><tt class="py-name">magnitude</tt> </tt>
<a name="L576"></a><tt class="py-lineno">576</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">result</tt> <tt class="py-op">==</tt> <tt class="py-number">0.0</tt><tt class="py-op">:</tt> </tt>
<a name="L577"></a><tt class="py-lineno">577</tt>  <tt class="py-line">        <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt id="link-156" class="py-name"><a title="Priithon.plt.seb.limits" class="py-name" href="#" onclick="return doclink('link-156', 'limits', 'link-1');">limits</a></tt><tt class="py-op">.</tt><tt id="link-157" class="py-name" targets="Variable Priithon.plt.seb.limits.float_epsilon=Priithon.plt.seb.limits-class.html#float_epsilon"><a title="Priithon.plt.seb.limits.float_epsilon" class="py-name" href="#" onclick="return doclink('link-157', 'float_epsilon', 'link-157');">float_epsilon</a></tt> </tt>
<a name="L578"></a><tt class="py-lineno">578</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
</div><a name="L579"></a><tt class="py-lineno">579</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Priithon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/priithon">Priithon</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Nov 22 14:59:54 2010
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
